diff options
author | Armin Wolf <W_Armin@gmx.de> | 2025-09-17 20:10:34 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2025-09-24 07:47:18 -0700 |
commit | b3499883c6d5f968f44e87d021ff2bd47ab5d094 (patch) | |
tree | 6b0fd2f87e580e5663dd5341f911b5822d7aec82 /scripts/gdb/linux/timerlist.py | |
parent | ddb61e737f04e3c6c8299c1e00bf17a42a7f05cf (diff) |
hwmon: (dell-smm) Move clamping of fan speed out of i8k_set_fan()
Currently i8k_set_fan() clamps the fan speed before performing the
SMM call to ensure that the speed is not negative and not greater than
i8k_fan_max. This however is mostly unnecessary as the hwmon and
thermal interfaces alread ensure this. Only the legacy ioctl interface
does not ensure that the fan speed passed to i8k_set_fan() does meet
the above criteria.
Move the clamping out of i8k_set_fan() and into the legacy ioctl
handler to prepare for future changes.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20250917181036.10972-3-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions