Skip to contentSkip to conversation

hwmon: (raspberrypi) Use generic notification mechanism

PATCH Applied [email protected] 2 participants 2 messages Sep 5, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/hwmon/raspberrypi-hwmon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/raspberrypi-hwmon.c +1 -1
index 805d396aa81b..573f53d52912 100644
@@ -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