hwmon: (raspberrypi) Use generic notification mechanism
Subsystems (2)
PATCH 1/1 hwmon: (raspberrypi) Use generic notification mechanism
From: Armin Wolf <[email protected]>
Use hwmon_notify_event() to make the code easier to understand and to also generate udev events.
Signed-off-by Armin Wolf <[email protected]>
--- drivers/hwmon/raspberrypi-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/raspberrypi-hwmon.c +1 -1
@@ -53,7 +53,7 @@ static void rpi_firmware_get_throttled(struct rpi_hwmon_data *data)else dev_info (data->hwmon_dev,"Voltage normalised\n" ); -sysfs_notify (&data->hwmon_dev->kobj,NULL ,"in0_lcrit_alarm" ); +hwmon_notify_event (data->hwmon_dev, hwmon_in, hwmon_in_lcrit_alarm,0 ); }static void get_values_poll (struct work_struct *work)
--
2.20.1
Quoted 6 lines · On Sun, Sep 05, 2021 at 09:00:49PM +0200, [email protected] wrote:
From: Armin Wolf <[email protected]>
Use
hwmon_notify_event()to make the code easier to understand and to also generate udev events.Signed-off-by Armin Wolf <[email protected]>
Applied to hwmon-next.
Thanks,
Guenter