Files
Armin Wolf 1e9cf600da hwmon: (dell-smm) Fix off-by-one error in dell_smm_is_visible()
commit fae00a7186 upstream.

The documentation states that on machines supporting only global
fan mode control, the pwmX_enable attributes should only be created
for the first fan channel (pwm1_enable, aka channel 0).

Fix the off-by-one error caused by the fact that fan channels have
a zero-based index.

Cc: stable@vger.kernel.org
Fixes: 1c1658058c ("hwmon: (dell-smm) Add support for automatic fan mode")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20251203202109.331528-1-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-08 10:16:56 +01:00
..
2025-06-16 06:30:57 -07:00
2025-03-18 08:03:40 -07:00
2025-05-12 18:05:54 -07:00
2025-09-07 16:33:47 -07:00
2025-04-23 07:18:27 -07:00
2025-09-25 08:08:13 -07:00
2025-10-19 18:56:14 -07:00
2024-11-10 14:48:07 -08:00
2025-09-09 05:26:11 -07:00
2025-09-07 16:33:48 -07:00