hwmon: (tmp421) Fix temperature conversions
commitbc6fb9e8ba0e5ec6641527b2cfdf170e332f6a5e
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Mar 2010 21:17:25 +0000 (5 22:17 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:49:57 +0000 (15 08:49 -0700)
treed281ab84e5651c59b3746ae9bfebe8f6c8160c10
parent95c2a40e131872cef98d2ec9db1a7ced88da53b9
hwmon: (tmp421) Fix temperature conversions

commit a44908d742a577fb5ccb9a8c082326d4cea234c2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/tmp421.c