Re: [PATCH] hwmon: Switch to using the new API kobj_to_dev()

2021-03-11 Thread Guenter Roeck
On Tue, Feb 23, 2021 at 05:14:27PM +0800, Yang Li wrote: > fixed the following coccicheck: > ./drivers/hwmon/hwmon.c:82:60-61: WARNING opportunity for kobj_to_dev() > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Applied. Thanks, Guenter > --- > drivers/hwmon/hwmon.c | 2 +- > 1 file c

[PATCH] hwmon: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/hwmon/hwmon.c:82:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/hwmon/hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c ind