hwmon: (gpio-fan) Switch to using the new API kobj_to_dev()
authorTian Tao <tiantao6@hisilicon.com>
Tue, 29 Dec 2020 03:17:17 +0000 (11:17 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 28 Jan 2021 01:44:18 +0000 (17:44 -0800)
commit8bfc731e476793d94312044907708920077a3a3a
tree1d64c3f6480cbbeb9c9116e5534ee5e0914c3a2b
parentf7a652182cc7f07cf658b8eee8d545ac109fd02e
hwmon: (gpio-fan) Switch to using the new API kobj_to_dev()

fixed the following coccicheck:
drivers/hwmon/gpio-fan.c:302:60-61: WARNING opportunity for
kobj_to_dev()

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