From: Guenter Roeck Date: Thu, 30 Jun 2011 09:09:37 +0000 (-0700) Subject: hwmon: (lm95241) Fix negative temperature results X-Git-Tag: v3.0-rc7~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c2a40e2fe4f4af0410f57e84b95b817ec15aa70;p=pandora-kernel.git 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 Acked-by: Jean Delvare Cc: stable@kernel.org # 2.6.30+ --- Reading git-diff-tree failed