From: Roland Stigge Date: Wed, 21 Sep 2011 17:06:11 +0000 (-0400) Subject: hwmon: (ds620) Fix handling of negative temperatures X-Git-Tag: v3.1-rc8~7^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc41d586e8b4d76164fe7731c1c49be6cc5fc7e6;p=platform%2Fkernel%2Flinux-3.10.git hwmon: (ds620) Fix handling of negative temperatures Signed (negative) temperatures were not handled correctly. Signed-off-by: Roland Stigge Signed-off-by: Guenter Roeck Cc: stable@kernel.org # v2.6.38+ --- diff --git a/drivers/hwmon/ds620.c b/drivers/hwmon/ds620.c index 257957c..4f7c3fc 100644 --- a/drivers/hwmon/ds620.c +++ b/drivers/hwmon/ds620.c @@ -72,7 +72,7 @@ struct ds620_data { char valid; /* !=0 if following fields are valid */ unsigned long last_updated; /* In jiffies */ - u16 temp[3]; /* Register values, word */ + s16 temp[3]; /* Register values, word */ }; /*