diff options
| author | 2026-08-20 22:19:13 -0700 | |
|---|---|---|
| committer | 2026-09-07 07:22:19 -0700 | |
| commit | 2bf98a6af10388215398a30d723ff1f6ff5ce4f7 (patch) | |
| tree | 1a5c679aa1c054604197bec7b897e34f1ab8cc96 /scripts/Makefile.thinlto | |
| parent | hwmon: (ina2xx) Acquire hwmon_lock in shunt_resistor_show() (diff) | |
hwmon: Ensure that 'dev' passed to hwmon_notify_event() is a hwmon device
The device parameter of hwmon_notify_event() must be a hardware monitoring
device. Since this is easy to get wrong, and since passing a non-hwmon
device may result in a crash, generate a warning traceback and abort if
a wrong device class is passed as parameter.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
