mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
hwmon: (ds620) Fix handling of negative temperatures
commit cc41d586e8 upstream.
Signed (negative) temperatures were not handled correctly.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e70f61eb1c
commit
a0dbac4607
|
|
@ -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 */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user