https://github.com/torvalds/linux
Revision 0c2a40e2fe4f4af0410f57e84b95b817ec15aa70 authored by Guenter Roeck on 30 June 2011, 09:09:37 UTC, committed by Guenter Roeck on 10 July 2011, 15:54:15 UTC
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+
1 parent 27739e6
History
Tip revision: 0c2a40e2fe4f4af0410f57e84b95b817ec15aa70 authored by Guenter Roeck on 30 June 2011, 09:09:37 UTC
hwmon: (lm95241) Fix negative temperature results
Tip revision: 0c2a40e
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 966 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.3 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 190.3 KB
Makefile -rw-r--r-- 52.2 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top