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>
This commit is contained in:
Aishwarya Pant 2017-10-10 20:09:18 +05:30 committed by Sebastian Reichel
parent e7c984cc6f
commit 33a7067732
2 changed files with 2 additions and 2 deletions

View File

@ -669,7 +669,7 @@ EXPORT_SYMBOL_GPL(power_supply_powers);
static void power_supply_dev_release(struct device *dev)
{
struct power_supply *psy = container_of(dev, struct power_supply, dev);
pr_debug("device: '%s': %s\n", dev_name(dev), __func__);
dev_dbg(dev, "%s\n", __func__);
kfree(psy);
}

View File

@ -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;
}