[lm-sensors] [PATCH] Bugfix for ds620.c (sign error)
Roland Stigge
stigge at antcom.de
Wed Sep 21 19:06:11 CEST 2011
Bugfix for ds620.c: Signed temperatures were not handled appropriately
Signed-off-by: Roland Stigge <stigge at antcom.de>
diff --git a/drivers/hwmon/ds620.c b/drivers/hwmon/ds620.c
index 257957c..4f7c3fc 100644
--- 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 */
- u16 temp[3]; /* Register values, word */
+ s16 temp[3]; /* Register values, word */
};
/*
More information about the lm-sensors
mailing list