summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2025-12-03 21:21:09 +0100
committerGuenter Roeck <linux@roeck-us.net>2025-12-07 14:10:18 -0800
commitfae00a7186cecf90a57757a63b97a0cbcf384fe9 (patch)
treec30c10e1119b8bdb9d7e640acfc2111700979041 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parent670d7ef945d3a84683594429aea6ab2cdfa5ceb4 (diff)
hwmon: (dell-smm) Fix off-by-one error in dell_smm_is_visible()
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: 1c1658058c99 ("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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions