mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 22:30:54 +07:00
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:
parent
e7c984cc6f
commit
33a7067732
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user