diff options
author | Roland Stigge <stigge@antcom.de> | 2011-09-21 13:06:11 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-09-21 17:25:18 -0700 |
commit | cc41d586e8b4d76164fe7731c1c49be6cc5fc7e6 (patch) | |
tree | a8d3af8d3b44d0cc54cd663553da3659f7191fca /drivers/hwmon | |
parent | 7cbe1ceeb6ab2e4bc334b3dab3254d4414b72a23 (diff) |
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')
-rw-r--r-- | drivers/hwmon/ds620.c | 2 |
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 */ }; /* |