LM75 bug fix for negative temperatures
authorLarry Johnson <lrj@acm.org>
Thu, 21 Feb 2008 18:58:16 +0000 (13:58 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 22 Feb 2008 15:33:09 +0000 (16:33 +0100)
commitd01b847c5cd070895c4ba178c85cd068a95cf7cd
treea5a4bcff6943bf094173e7355183ca987c8e96aa
parent5a910c224b13e413bda41922379add6d75c32da3
LM75 bug fix for negative temperatures

When the LM75 temperature sensor measures a temperature below 0 C, the
current driver does not perform sign extension, so the result returned is
256 C too high.  This patch fixes the problem.

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