hwmon: (da9052) Switch to using the new API kobj_to_dev()
authorTian Tao <tiantao6@hisilicon.com>
Tue, 9 Feb 2021 08:43:28 +0000 (16:43 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 12 Feb 2021 04:28:56 +0000 (20:28 -0800)
commit8c646ef145136a7b1781976c42802391d5b8522b
treec5250ef98685eb46105952fc585754bf573b419a
parent9f56b8eb85927c6391216e4f35a7abb34847f0fd
hwmon: (da9052) Switch to using the new API kobj_to_dev()

Switch to using the new API kobj_to_dev() to fix the below warnning:
/drivers/hwmon/da9052-hwmon.c:302:60-61: WARNING opportunity for
kobj_to_dev().

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Link: https://lore.kernel.org/r/1612860208-51088-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/da9052-hwmon.c