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)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 24 Jul 2023 14:01:40 +0000 (07:01 -0700)
commit54685abe660a59402344d5045ce08c43c6a5ac42
treeca777582f99a4690512e5a3f86ee344acc4a86da
parent13558a2e6341d1ba6dff9f8e2febf97877067885
hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled

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>
drivers/hwmon/nct7802.c