Skip to content

Commit

Permalink
hwmon: (ntc_thermistor) Fix temperature type reporting
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
groeck committed Mar 29, 2019
1 parent 8e6af45 commit 5fd43dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/ntc_thermistor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 5fd43dd

Please sign in to comment.