Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */
};

/*