]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (tmp421) Fix temperature conversions
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Mar 2010 21:17:25 +0000 (22:17 +0100)
committerJean Delvare <khali@linux-fr.org>
Fri, 5 Mar 2010 21:17:25 +0000 (22:17 +0100)
commit9937268788911a03760391d4b762d2c0a201044a
tree098a62ddb96853c7e66fb58b67f5f163b8d3d401
parentfc6cba453012777254fa9f1dddba114967976e40
hwmon: (tmp421) Fix temperature conversions

The low bits of temperature registers are status bits, they must be
masked out before converting the register values to temperatures.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Andre Prendel <andre.prendel@gmx.de>
Cc: stable@kernel.org
drivers/hwmon/tmp421.c