]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled
authorGilles Buloz <Gilles.Buloz@kontron.com>
Mon, 24 Jul 2023 08:04:44 +0000 (08:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:44 +0000 (10:22 +0200)
commita7abb1690fe1ace47070ade58e93350166baa7f8
tree2514d946d8ab279a28a9d4b9ab3b22053f7c94b0
parent3f3cdca84432eccba2447df20ddf0e8e95bafdc5
hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled

commit 54685abe660a59402344d5045ce08c43c6a5ac42 upstream.

Because of hex value 0x46 used instead of decimal 46, the temp6
(PECI1) temperature is always declared visible and then displayed
even if disabled in the chip

Signed-off-by: Gilles Buloz <gilles.buloz@kontron.com>
Link: https://lore.kernel.org/r/DU0PR10MB62526435ADBC6A85243B90E08002A@DU0PR10MB6252.EURPRD10.PROD.OUTLOOK.COM
Fixes: fcdc5739dce03 ("hwmon: (nct7802) add temperature sensor type attribute")
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/nct7802.c