]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d34564d9754424ed298a0d5e11affb1e6ba0f05
tree700df81a533bcb14c1eb58e9740c136560b41899
parent47e31fa1e45a5136ed2e3cc537a9407dd632f795
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