projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cbe1ce
)
hwmon: (ds620) Fix handling of negative temperatures
author
Roland Stigge
<stigge@antcom.de>
Wed, 21 Sep 2011 17:06:11 +0000
(13:06 -0400)
committer
Guenter Roeck
<guenter.roeck@ericsson.com>
Thu, 22 Sep 2011 00:25:18 +0000
(17:25 -0700)
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+
drivers/hwmon/ds620.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/ds620.c
b/drivers/hwmon/ds620.c
index
257957c
..
4f7c3fc
100644
(file)
--- 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 */
-
u
16 temp[3]; /* Register values, word */
+
s
16 temp[3]; /* Register values, word */
};
/*