power-supply: use kobj_to_dev()
authorJian Dong <dongjian@yulong.com>
Wed, 20 Jan 2021 01:47:12 +0000 (09:47 +0800)
committerSebastian Reichel <sre@kernel.org>
Thu, 28 Jan 2021 00:31:42 +0000 (01:31 +0100)
commita72acc56f3e939b9e10f2dd460ac1e4519de621f
tree5c9e7d9eb93ad807c4bd81e394077a5771a0eb3f
parent2a0aa0fa39d430957ea375f5ad64f67f0258ebfa
power-supply: use kobj_to_dev()

Use kobj_to_dev() instead of open-coding it

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