diff options
author | Guenter Roeck <[email protected]> | 2020-05-28 17:28:04 +0300 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2020-05-28 07:59:45 -0700 |
commit | 1597b374af22266266e1e20612208c4b11359ad4 (patch) | |
tree | 7e554027392438688d0e5dc0b21286d3fd2b16c9 /scripts/gdb/linux/modules.py | |
parent | ddc65caa56660813af1c8cff979bdc80f81456f2 (diff) |
hwmon: Add notification support
For hwmon drivers using the hwmon_device_register_with_info() API, it
is desirable to have a generic notification mechanism available. This
mechanism can be used to notify userspace as well as the thermal
subsystem if the driver experiences any events, such as warning or
critical alarms.
Implement hwmon_notify_event() to provide this mechanism. The function
generates a sysfs event and a udev event. If the device is registered
with the thermal subsystem and the event is associated with a temperature
sensor, also notify the thermal subsystem that a thermal event occurred.
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Serge Semin <[email protected]>
Cc: Maxim Kaurkin <[email protected]>
Cc: Alexey Malahov <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions