hwmon: (gpio-fan) fix sysfs notifications and udev events for gpio-fan alarms
authorChristian Schneider <cschneider@radiodata.biz>
Tue, 2 Jul 2019 13:23:38 +0000 (15:23 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jul 2019 01:11:32 +0000 (18:11 -0700)
commit277c628fa5acf363b73cdd3793700dc575a988c0
tree5158202c2b760953837ba280abcf92bba6b19493
parentf2173fa2246e906602c6286c7dade68109d68976
hwmon: (gpio-fan) fix sysfs notifications and udev events for gpio-fan alarms

sysfs_notify() and kobject_uevent() are passed the wrong device.
fan_data->hwmon_dev needs to be passed, so that sysfs notification
goes to right place and generated uevent has the right information

Signed-off-by: Christian Schneider <cschneider@radiodata.biz>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gpio-fan.c