aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2017-10-10 10:39:18 -0400
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>2017-11-06 07:59:41 -0500
commit33a7067732cf1b86b5dc672cfa9bbc15460117e5 (patch)
tree4647eb75f4061a709b509f39998fac3af4380b09
parente7c984cc6f35766019039867875c788c4545147a (diff)
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>
-rw-r--r--drivers/power/supply/power_supply_core.c2
-rw-r--r--drivers/power/supply/twl4030_charger.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index 02c6340ae36f..82f998ab5a52 100644
--- a/drivers/power/supply/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
@@ -669,7 +669,7 @@ EXPORT_SYMBOL_GPL(power_supply_powers);
669static void power_supply_dev_release(struct device *dev) 669static void power_supply_dev_release(struct device *dev)
670{ 670{
671 struct power_supply *psy = container_of(dev, struct power_supply, dev); 671 struct power_supply *psy = container_of(dev, struct power_supply, dev);
672 pr_debug("device: '%s': %s\n", dev_name(dev), __func__); 672 dev_dbg(dev, "%s\n", __func__);
673 kfree(psy); 673 kfree(psy);
674} 674}
675 675
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)
743 743
744 ret = twl4030_bci_read(TWL4030_BCIMSTATEC, &state); 744 ret = twl4030_bci_read(TWL4030_BCIMSTATEC, &state);
745 if (ret) { 745 if (ret) {
746 pr_err("twl4030_bci: error reading BCIMSTATEC\n"); 746 dev_err(bci->dev, "error reading BCIMSTATEC\n");
747 return ret; 747 return ret;
748 } 748 }
749 749