summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ds620.c
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2011-09-21 19:06:11 +0200
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-09-22 02:25:18 +0200
commitcc41d586e8b4d76164fe7731c1c49be6cc5fc7e6 (patch)
treea8d3af8d3b44d0cc54cd663553da3659f7191fca /drivers/hwmon/ds620.c
parenthwmon: (w83791d) rename prototype parameter from 'register' to 'reg' (diff)
downloadlinux-cc41d586e8b4d76164fe7731c1c49be6cc5fc7e6.tar.xz
linux-cc41d586e8b4d76164fe7731c1c49be6cc5fc7e6.zip
hwmon: (ds620) Fix handling of negative temperatures
Signed (negative) temperatures were not handled correctly. Signed-off-by: Roland Stigge <stigge@antcom.de> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Cc: stable@kernel.org # v2.6.38+
Diffstat (limited to 'drivers/hwmon/ds620.c')
-rw-r--r--drivers/hwmon/ds620.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ds620.c b/drivers/hwmon/ds620.c
index 257957c69d92..4f7c3fc40a89 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 */
};
/*