Skip to contentSkip to conversation

hwmon: nct7802: Fix for temp6 (PECI1) processed even if PECI1 disabled

PATCH New Gilles BULOZ 1 participant 1 message Jul 21, 2023 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: nct7802: Fix for temp6 (PECI1) processed even if PECI1 disabled

Fix for temp6 (PECI1) processed even if PECI1 disabled

---
 drivers/hwmon/nct7802.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/nct7802.c +1 -1
index 9339bfc..024cff1 100644
@@ -725,7 +725,7 @@ static umode_t nct7802_temp_is_visible(struct kobject *kobj,
 	if (index >= 38 && index < 46 && !(reg & 0x01))		/* PECI 0 */
 		return 0;
 
-	if (index >= 0x46 && (!(reg & 0x02)))			/* PECI 1 */
+	if (index >= 46 && !(reg & 0x02))			/* PECI 1 */
 		return 0;
 
 	return attr->mode;
Signature · 1 line
2.23.0