Skip to content

Commit 5fd43dd

Browse files
committed
hwmon: (ntc_thermistor) Fix temperature type reporting
Commit 7cc7de9 ("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: 7cc7de9 ("hwmon: (ntc_thermistor) Convert to new hwmon API") Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 8e6af45 commit 5fd43dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/ntc_thermistor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ static const struct hwmon_channel_info ntc_chip = {
640640
};
641641

642642
static const u32 ntc_temp_config[] = {
643-
HWMON_T_INPUT, HWMON_T_TYPE,
643+
HWMON_T_INPUT | HWMON_T_TYPE,
644644
0
645645
};
646646

0 commit comments

Comments
 (0)