mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
hwmon: (axi-fan-control) Use hwmon_notify_event
Instead of directly accessing kobj directly from the driver, use the hwmon notify API. Signed-off-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20220308135408.440744-1-nuno.sa@analog.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
92abe50490
commit
5d4a2ea96b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue