summaryrefslogtreecommitdiff
path: root/drivers/power/supply/bq24190_charger.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-03-27 00:09:54 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-05-12 20:06:45 +0300
commit454b9c1ffd422bfd5cfb7212a66a00a0d8a2c1b4 (patch)
tree262df4d1830000e3f981e346bc644158f04e28b6 /drivers/power/supply/bq24190_charger.c
parent478efc79ee32a3f1227cda49295ef24cda8b114c (diff)
downloadlinux-454b9c1ffd422bfd5cfb7212a66a00a0d8a2c1b4.tar.xz
power: supply: bq24190_charger: convert to use i2c_new_client_device()
Move away from the deprecated API in this comment. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/bq24190_charger.c')
-rw-r--r--drivers/power/supply/bq24190_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c
index 453d6332d43a..4540e913057f 100644
--- a/drivers/power/supply/bq24190_charger.c
+++ b/drivers/power/supply/bq24190_charger.c
@@ -673,7 +673,7 @@ static int bq24190_register_reset(struct bq24190_dev_info *bdi)
* { .type = "bq24190", .addr = 0x6b, .properties = pe, .irq = irq };
* struct i2c_adapter ad = { ... };
* i2c_add_adapter(&ad);
- * i2c_new_device(&ad, &bi);
+ * i2c_new_client_device(&ad, &bi);
*/
if (device_property_read_bool(bdi->dev, "disable-reset"))
return 0;