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>
Sat, 5 Feb 2022 18:01:33 +0000 (10:01 -0800)
commiteac88dd85db9d1c866a4ff1fced07c740dbab960
tree4555ac7a5955586260d550af6fa93b570a7afaec
parentbb9bb9c75482aa008cfc62b5cb88681de8408fa3
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