hwmon: (lm90) Fix sysfs and udev notifications
authorGuenter Roeck <linux@roeck-us.net>
Tue, 11 Jan 2022 07:23:31 +0000 (23:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:27:12 +0000 (17:27 +0100)
commit774a6ef81458b86d0034dc663c9e5622879f81ea
tree3a6a41a73291e866c045ff60a8362d2705c19e24
parentf4a61d7989d561a64a0513cd76ca860fd93c657d
hwmon: (lm90) Fix sysfs and udev notifications

[ Upstream commit d379880d9adb9f1ada3f1266aa49ea2561328e08 ]

sysfs and udev notifications need to be sent to the _alarm
attributes, not to the value attributes.

Fixes: 94dbd23ed88c ("hwmon: (lm90) Use hwmon_notify_event()")
Cc: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/lm90.c