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+
This commit is contained in:
committed by
Guenter Roeck
parent
7cbe1ceeb6
commit
cc41d586e8
@@ -72,7 +72,7 @@ struct ds620_data {
|
|||||||
char valid; /* !=0 if following fields are valid */
|
char valid; /* !=0 if following fields are valid */
|
||||||
unsigned long last_updated; /* In jiffies */
|
unsigned long last_updated; /* In jiffies */
|
||||||
|
|
||||||
u16 temp[3]; /* Register values, word */
|
s16 temp[3]; /* Register values, word */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user