]> Git Repo - J-linux.git/commitdiff
hwmon: (axi-fan-control) Use hwmon_notify_event
authorNuno Sá <[email protected]>
Tue, 8 Mar 2022 13:54:08 +0000 (14:54 +0100)
committerGuenter Roeck <[email protected]>
Tue, 8 Mar 2022 17:20:00 +0000 (09:20 -0800)
Instead of directly accessing kobj directly from the driver, use the
hwmon notify API.

Signed-off-by: Nuno Sá <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
drivers/hwmon/axi-fan-control.c

index d2092c17d9935500ccfa190763c37de66d99b30f..96c4a5c45291fc7efbf0a8b8acdc94bb7902225e 100644 (file)
@@ -339,7 +339,8 @@ static irqreturn_t axi_fan_control_irq_handler(int irq, void *data)
                        ctl->update_tacho_params = true;
                } else {
                        ctl->hw_pwm_req = false;
-                       sysfs_notify(&ctl->hdev->kobj, NULL, "pwm1");
+                       hwmon_notify_event(ctl->hdev, hwmon_pwm,
+                                          hwmon_pwm_input, 0);
                }
        }
 
This page took 0.050178 seconds and 4 git commands to generate.