hwmon: (dell-smm-hwmon) Fix index values
authorArmin Wolf <W_Armin@gmx.de>
Thu, 13 May 2021 15:45:46 +0000 (17:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jun 2021 11:39:13 +0000 (13:39 +0200)
commit0d0df2e53223167d305dde815664bc830cd4cce6
tree4f4be422efd1b74dafcc701ccd4613cfa4a574ac
parent70df000fb8808e2ea63e6beb2ff570c083592614
hwmon: (dell-smm-hwmon) Fix index values

[ Upstream commit 35d470b5fbc9f82feb77b56bb0d5d0b5cd73e9da ]

When support for up to 10 temp sensors and for disabling automatic BIOS
fan control was added, noone updated the index values used for
disallowing fan support and fan type calls.
Fix those values.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20210513154546.12430-1-W_Armin@gmx.de
Fixes: 1bb46a20e73b ("hwmon: (dell-smm) Support up to 10 temp sensors")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/dell-smm-hwmon.c