summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/axi-fan-control.c
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2022-03-08 14:54:08 +0100
committerGuenter Roeck <linux@roeck-us.net>2022-03-08 18:20:00 +0100
commit5d4a2ea96b79e7e11f1551130bb9166258b71243 (patch)
tree700df81a533bcb14c1eb58e9740c136560b41899 /drivers/hwmon/axi-fan-control.c
parenthwmon: (vexpress-hwmon) Use of_device_get_match_data() (diff)
downloadlinux-5d4a2ea96b79e7e11f1551130bb9166258b71243.tar.xz
linux-5d4a2ea96b79e7e11f1551130bb9166258b71243.zip
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>
Diffstat (limited to 'drivers/hwmon/axi-fan-control.c')
-rw-r--r--drivers/hwmon/axi-fan-control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/axi-fan-control.c b/drivers/hwmon/axi-fan-control.c
index d2092c17d993..96c4a5c45291 100644
--- a/drivers/hwmon/axi-fan-control.c
+++ b/drivers/hwmon/axi-fan-control.c
@@ -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);
}
}