mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ibmpex: Report temperatures in mC, not C.
@ 2008-03-13 22:12 Darrick J. Wong
  0 siblings, 0 replies; only message in thread
From: Darrick J. Wong @ 2008-03-13 22:12 UTC (permalink / raw)
  To: lm-sensors, linux-kernel, Mark M. Hoffman; +Cc: Andrew Morton

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: Darrick J. Wong <djwong@us.ibm.com>
---

 drivers/hwmon/ibmpex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c
index db551d8..4e9b19c 100644
--- a/drivers/hwmon/ibmpex.c
+++ b/drivers/hwmon/ibmpex.c
@@ -410,7 +410,7 @@ static int ibmpex_find_sensors(struct ibmpex_bmc_data *data)
 			sensor_type = TEMP_SENSOR;
 			num_temp++;
 			sensor_counter = num_temp;
-			data->sensors[i].multiplier = 1;
+			data->sensors[i].multiplier = 1000;
 		} else
 			continue;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-13 22:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-13 22:12 [PATCH] ibmpex: Report temperatures in mC, not C Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®