LM73 bug fix for negative temperatures and cleanup
authorLarry Johnson <lrj@acm.org>
Thu, 21 Feb 2008 18:58:11 +0000 (13:58 -0500)
committerWolfgang Denk <wd@denx.de>
Sun, 13 Apr 2008 15:58:36 +0000 (08:58 -0700)
commit7754f33c6fb7a2c050388d20bf3847038558bdcf
treeb638b75d671f55ff357c78e6bfabb5cfd3ed7aa7
parent950a392464e616b4590bc4501be46e2d7d162dea
LM73 bug fix for negative temperatures and cleanup

When the LM73 temperature sensor measures a temperature below 0 C, the
current driver does not perform sign extension, so the result returned is
512 C too high.  This patch fixes the problem, and does general cleanup
of the code.

Signed-off-by: Larry Johnson <lrj@acm.org>
drivers/hwmon/lm73.c