OSDN Git Service

hwmon: (raspberrypi) Use generic notification mechanism
authorArmin Wolf <W_Armin@gmx.de>
Sun, 5 Sep 2021 19:00:49 +0000 (21:00 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 12 Oct 2021 14:22:37 +0000 (07:22 -0700)
commitd73287eed73fa024af704e269eca542e3bb213bb
tree87dcf539995c5984949f332569e40895643db09a
parent6665e10a2ec3cadfe026d4f28a2e3193fe392035
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 <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20210905190049.11381-1-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/raspberrypi-hwmon.c