]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3aadcabedd43f29b4249637d95d60bc33f3ad94
treeaf8268c8c6f4f8f713a1220bbc3fa9a7a23b9328
parent7b81da8cb1950a1d47a28868b5a4df10d30cdec6
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