Skip to content

Commit

Permalink
hwmon: (ds620) Fix handling of negative temperatures
Browse files Browse the repository at this point in the history
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+
  • Loading branch information
Roland Stigge authored and Guenter Roeck committed Sep 22, 2011
1 parent 7cbe1ce commit cc41d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/ds620.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};

/*
Expand Down

0 comments on commit cc41d58

Please sign in to comment.