Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33a70677 authored by Aishwarya Pant's avatar Aishwarya Pant Committed by Sebastian Reichel
Browse files

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: default avatarAishwarya Pant <aishpant@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent e7c984cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

+1 −1
Original line number Diff line number Diff line
@@ -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;
	}