hwmon: (dell-smm) Add support for fanX_min, fanX_max and fanX_target
authorArmin Wolf <W_Armin@gmx.de>
Sun, 26 Sep 2021 22:10:43 +0000 (00:10 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 16 Oct 2021 21:58:42 +0000 (14:58 -0700)
commitb1986c8e31a3e5f119a52aab50234fc65cf01f30
tree079288213759c620f6a1ec34ed6c23390e217146
parent51369c0f05347c1f4762cb05e9775e81eec04262
hwmon: (dell-smm) Add support for fanX_min, fanX_max and fanX_target

The nominal speed of each fan can be obtained with
i8k_get_fan_nominal_speed(), however the result is not available
from userspace.
Change that by adding fanX_min, fanX_max and fanX_target attributes.
All are RO since fan control happens over pwm.

Tested on a Dell Inspiron 3505 and a Dell Latitude C600.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20210926221044.14327-2-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/dell-smm-hwmon.rst
drivers/hwmon/dell-smm-hwmon.c