Re: [PATCH] hwmon: (dell-smm): Fix off-by-one error in dell_smm_is_visible()

From: Guenter Roeck

Date: Thu Dec 04 2025 - 23:03:28 EST


On Wed, Dec 03, 2025 at 09:21:09PM +0100, Armin Wolf wrote:
> 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@xxxxxxxxxxxxxxx
> Fixes: 1c1658058c99 ("hwmon: (dell-smm) Add support for automatic fan mode")
> Signed-off-by: Armin Wolf <W_Armin@xxxxxx>

Applied.

Thanks,
Guenter