]> git.baikalelectronics.ru Git - kernel.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>
Tue, 20 Apr 2021 13:50:14 +0000 (06:50 -0700)
commita3e599d7727fb92efaa80a34f88984e5599eb6db
treecb7e8901fa9f58f25bfaf710207f39addabcc162
parent42a1dc9ea1fd27c53c4c5529e790634558835446
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