Commit cc41d586 authored by Roland Stigge's avatar Roland Stigge Committed by Guenter Roeck

hwmon: (ds620) Fix handling of negative temperatures

Signed (negative) temperatures were not handled correctly.
Signed-off-by: default avatarRoland Stigge <stigge@antcom.de>
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
Cc: stable@kernel.org # v2.6.38+
parent 7cbe1cee
......@@ -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 */
};
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment