diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-03-20 10:32:58 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-03-29 09:51:44 -0700 |
commit | 5fd43ddbec7623441239d247155a30b69e51bea1 (patch) | |
tree | 2b2b8ebe2396198ed481bb55c78d8a6e444289d2 /drivers/hwmon | |
parent | 8e6af454117a51dbf6c8a47c00180a0c235052fe (diff) | |
download | linux-stable-5fd43ddbec7623441239d247155a30b69e51bea1.tar.gz linux-stable-5fd43ddbec7623441239d247155a30b69e51bea1.tar.bz2 linux-stable-5fd43ddbec7623441239d247155a30b69e51bea1.zip |
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 <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/ntc_thermistor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c index e4f9f7ce92fa..f9abeeeead9e 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 }; |