hwmon: (ds1621) Use kobj_to_dev()
authorTian Tao <tiantao6@hisilicon.com>
Thu, 18 Mar 2021 01:55:04 +0000 (09:55 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Apr 2021 13:50:14 +0000 (06:50 -0700)
commitf3e3464ec893409189cb1a0657c2eca31ca82504
treec63ad1ab6bcd2ca424d5fb17b1e50d61db9e35fe
parent23bc3caf42bd0f140182ba60cc68d7872e81aeea
hwmon: (ds1621) Use kobj_to_dev()

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

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