power: supply: ds2780: Switch to using the new API kobj_to_dev()
authorTian Tao <tiantao6@hisilicon.com>
Tue, 15 Dec 2020 01:00:24 +0000 (09:00 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 16 Jan 2021 11:36:26 +0000 (12:36 +0100)
commitf856b2f295bc87f96f446f20d41913eade08af07
tree864bb39cf1c431aa2e8e84bf34ffcffceb13565b
parent3ed510f06e12f8876c20474766cc2f101a41174f
power: supply: ds2780: Switch to using the new API kobj_to_dev()

fixed the following coccicheck:
drivers/power/supply/ds2780_battery.c:627:60-61: WARNING opportunity for
kobj_to_dev()
drivers/power/supply/ds2780_battery.c:672:60-61: WARNING opportunity for
kobj_to_dev()
drivers/power/supply/ds2780_battery.c:640:60-61: WARNING opportunity for
kobj_to_dev()
drivers/power/supply/ds2780_battery.c:685:60-61: WARNING opportunity for
kobj_to_dev()

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ds2780_battery.c