* [PATCH] hwmon: (raspberrypi) Use generic notification mechanism
@ 2021-09-05 19:00 W_Armin
2021-09-05 20:33 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: W_Armin @ 2021-09-05 19:00 UTC (permalink / raw)
To: jdelvare, linux; +Cc: linux-hwmon
From: Armin Wolf <W_Armin@gmx.de>
Use hwmon_notify_event() to make the code easier to
understand and to also generate udev events.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/hwmon/raspberrypi-hwmon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hwmon: (raspberrypi) Use generic notification mechanism
2021-09-05 19:00 [PATCH] hwmon: (raspberrypi) Use generic notification mechanism W_Armin
@ 2021-09-05 20:33 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2021-09-05 20:33 UTC (permalink / raw)
To: W_Armin; +Cc: jdelvare, linux-hwmon
On Sun, Sep 05, 2021 at 09:00:49PM +0200, W_Armin@gmx.de wrote:
> From: Armin Wolf <W_Armin@gmx.de>
>
> Use hwmon_notify_event() to make the code easier to
> understand and to also generate udev events.
>
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Applied to hwmon-next.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-05 20:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-05 19:00 [PATCH] hwmon: (raspberrypi) Use generic notification mechanism W_Armin
2021-09-05 20:33 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).