power: supply: ds2781: use kobj_to_dev()
authordongjian <dongjian@yulong.com>
Tue, 16 Mar 2021 06:54:12 +0000 (14:54 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 22 Mar 2021 14:05:41 +0000 (15:05 +0100)
commitc77b26e327dc09a53417dba87637824260389bf5
treeaa0538edf95a2b006cb02e79c398782852f74429
parent31ba6fadc3ba55dce727f0213b30c87fc085a360
power: supply: ds2781: use kobj_to_dev()

Use kobj_to_dev() instead of open-coding it

Signed-off-by: dongjian <dongjian@yulong.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ds2781_battery.c