hwmon: Report attribute name with udev events
authorGuenter Roeck <linux@roeck-us.net>
Mon, 10 Jan 2022 22:56:25 +0000 (14:56 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:16 +0000 (17:03 -0800)
commit7f3cc8f897634b7e2d79bc2b7105e9ae6eaf4ac2
treeaf8268c8c6f4f8f713a1220bbc3fa9a7a23b9328
parent686d303ee6301261b422ea51e64833d7909a2c36
hwmon: Report attribute name with udev events

Up to now udev events only report the affected hwmon device if an alert
is reported. This requires userspace to read all attributes if it wants
to know what triggered the event. Provide the attribute name with the
NAME property to help userspace find the attribute causing the event.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c