Searched hist:"0 c2a40e2fe4f4af0410f57e84b95b817ec15aa70" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/hwmon/ |
H A D | lm95241.c | diff 0c2a40e2fe4f4af0410f57e84b95b817ec15aa70 Thu Jun 30 11:09:37 CEST 2011 Guenter Roeck <guenter.roeck@ericsson.com> hwmon: (lm95241) Fix negative temperature results
Negative temperatures were returned in degrees C instead of milli-Degrees C. Also, negative temperatures were reported for remote temperature sensors even if the chip was configured for positive-only results.
Fix by detecting temperature modes, and by treating negative temperatures similar to positive temperatures, with appropriate sign extension.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Acked-by: Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.30+
|