Commit ffda6857 authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Linus Torvalds

ibmpex: report temperatures in mC, not C

ibmpex's temperature sensors report incorrect units.  Apply a conversion
factor so that tempertures report correctly.  Until now, no systems seemed to
report temperatures this way, but evidently QS2x blades do.
Signed-off-by: default avatarDarrick J. Wong <djwong@us.ibm.com>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3d960a99
...@@ -410,7 +410,7 @@ static int ibmpex_find_sensors(struct ibmpex_bmc_data *data) ...@@ -410,7 +410,7 @@ static int ibmpex_find_sensors(struct ibmpex_bmc_data *data)
sensor_type = TEMP_SENSOR; sensor_type = TEMP_SENSOR;
num_temp++; num_temp++;
sensor_counter = num_temp; sensor_counter = num_temp;
data->sensors[i].multiplier = 1; data->sensors[i].multiplier = 1000;
} else } else
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment