summaryrefslogtreecommitdiff
path: root/drivers/power/supply/twl4030_charger.c
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2017-10-10 17:39:18 +0300
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>2017-11-06 15:59:41 +0300
commit33a7067732cf1b86b5dc672cfa9bbc15460117e5 (patch)
tree4647eb75f4061a709b509f39998fac3af4380b09 /drivers/power/supply/twl4030_charger.c
parente7c984cc6f35766019039867875c788c4545147a (diff)
downloadlinux-33a7067732cf1b86b5dc672cfa9bbc15460117e5.tar.xz
power: supply: replace pr_* with dev_*
Use kernel preferred dev_* family of functions in place of pr_*, wherever a device object is present. Done with the help of coccinelle. Signed-off-by: Aishwarya Pant <aishpant@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/power/supply/twl4030_charger.c')
-rw-r--r--drivers/power/supply/twl4030_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/twl4030_charger.c b/drivers/power/supply/twl4030_charger.c
index a5915f498eea..bbcaee56db9d 100644
--- a/drivers/power/supply/twl4030_charger.c
+++ b/drivers/power/supply/twl4030_charger.c
@@ -743,7 +743,7 @@ static int twl4030bci_state(struct twl4030_bci *bci)
ret = twl4030_bci_read(TWL4030_BCIMSTATEC, &state);
if (ret) {
- pr_err("twl4030_bci: error reading BCIMSTATEC\n");
+ dev_err(bci->dev, "error reading BCIMSTATEC\n");
return ret;
}