aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/raspberrypi-hwmon.c
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2021-09-05 19:00:49 +0000
committerGuenter Roeck <[email protected]>2021-10-12 14:22:37 +0000
commitd73287eed73fa024af704e269eca542e3bb213bb (patch)
tree87dcf539995c5984949f332569e40895643db09a /drivers/hwmon/raspberrypi-hwmon.c
parenthwmon: (i5500_temp) Convert to devm_hwmon_device_register_with_info (diff)
downloadkernel-d73287eed73fa024af704e269eca542e3bb213bb.tar.gz
kernel-d73287eed73fa024af704e269eca542e3bb213bb.zip
hwmon: (raspberrypi) Use generic notification mechanism
Use hwmon_notify_event() to make the code easier to understand and to also generate udev events. Signed-off-by: Armin Wolf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/hwmon/raspberrypi-hwmon.c')
-rw-r--r--drivers/hwmon/raspberrypi-hwmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/raspberrypi-hwmon.c b/drivers/hwmon/raspberrypi-hwmon.c
index 805d396aa81b..573f53d52912 100644
--- a/drivers/hwmon/raspberrypi-hwmon.c
+++ b/drivers/hwmon/raspberrypi-hwmon.c
@@ -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)