hwmon: (axi-fan-control) Use hwmon_notify_event
authorNuno Sá <nuno.sa@analog.com>
Tue, 8 Mar 2022 13:54:08 +0000 (14:54 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 8 Mar 2022 17:20:00 +0000 (09:20 -0800)
commit5d4a2ea96b79e7e11f1551130bb9166258b71243
tree700df81a533bcb14c1eb58e9740c136560b41899
parent92abe50490d36ac2ee56f63db24adee219ed63c5
hwmon: (axi-fan-control) Use hwmon_notify_event

Instead of directly accessing kobj directly from the driver, use the
hwmon notify API.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220308135408.440744-1-nuno.sa@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/axi-fan-control.c