From: Guenter Roeck Date: Wed, 20 Mar 2019 17:32:58 +0000 (-0700) Subject: hwmon: (ntc_thermistor) Fix temperature type reporting X-Git-Tag: v5.1-rc4~27^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fd43ddbec7623441239d247155a30b69e51bea1;p=thirdparty%2Flinux.git 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") Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c index e4f9f7ce92fab..f9abeeeead9e9 100644 --- a/drivers/hwmon/ntc_thermistor.c +++ b/drivers/hwmon/ntc_thermistor.c @@ -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 };