]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Fri, 12 Mar 2021 04:41:22 +0000 (20:41 -0800)
commit9fad0abffdb97886054d0a2be85ed07aa791e556
tree302635d4b4300e5eeef21cfd5f6c2a66431f52ee
parent5aa2baaefadc862f2c6d8cc2337a4fa2b90f1498
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