hwmon: Switch to using the new API kobj_to_dev()
authorYang Li <yang.lee@linux.alibaba.com>
Tue, 23 Feb 2021 09:14:27 +0000 (17:14 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Apr 2021 13:50:14 +0000 (06:50 -0700)
commit77d76768d0984510b2be1987a3c410df598a9ea2
treecb7e8901fa9f58f25bfaf710207f39addabcc162
parent124b7e34a5a6bf2618bca2fa7062922e338db122
hwmon: Switch to using the new API kobj_to_dev()

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

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1614071667-5665-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c