Skip to contentSkip to conversation

hwmon: (ntc_thermistor) Fix temperature type reporting

PATCH New Guenter Roeck 1 participant 1 message Mar 20, 2019 Hardware monitoring

lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 1/1 hwmon: (ntc_thermistor) Fix temperature type reporting

Commit 7cc7de93fad4 ("hwmon: (ntc_thermistor) Convert to new hwmon API") converted the driver to use the new hwmon API, but introduced a subtle
error: The temperature type is no longer reported as temp1_type, but as temp2_type.

Fixes 7cc7de93fad4 ("hwmon: (ntc_thermistor) Convert to new hwmon API")
---
 drivers/hwmon/ntc_thermistor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ntc_thermistor.c +1 -1
index e4f9f7ce92fa..f9abeeeead9e 100644
@@ -640,7 +640,7 @@ static const struct hwmon_channel_info ntc_chip = {
 };
 
 static const u32 ntc_temp_config[] = {
-	HWMON_T_INPUT, HWMON_T_TYPE,
+	HWMON_T_INPUT | HWMON_T_TYPE,
 	0
 };
 
Signature · 1 line
2.7.4