diff options
| author | Pei Xiao <xiaopei01@kylinos.cn> | 2026-06-11 08:44:14 +0800 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-06-10 22:07:17 -0700 |
| commit | 69cbfd708884fa71a1c2353c07ecd8e646bd43a0 (patch) | |
| tree | dfc3177299394ca17407872681f0dcfc62bab8e2 /scripts/Makefile.thinlto | |
| parent | 5a1aba28f6c79f4bbb7a5361063225030ecd36f3 (diff) | |
hwmon: (gpd-fan) Reject EC PWM value 0 as invalid
The EC firmware is expected to return values in [1, pwm_max]. A read of 0
is illegal and would cause underflow in the conversion formula. Explicitly
check for 0 and return -EIO.
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://lore.kernel.org/r/1c2ffa0d832ae3a74f6d4ffa7cc7b7e6cced69e3.1781138459.git.xiaopei01@kylinos.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
