ds1621: Fix negative temperature readings
authorJeff Dischler <jdischler@xes-inc.com>
Wed, 29 Sep 2010 18:46:19 +0000 (13:46 -0500)
committerWolfgang Denk <wd@denx.de>
Wed, 6 Oct 2010 21:01:22 +0000 (23:01 +0200)
commit7d85f1dc5cf1269ecb41de983c29386e6cddf910
tree276f6863ac94d1e34309b497cd0a65219e2778c5
parent9a6c80b0cfca744816e8ee55fcf5d7d55da09cbd
ds1621: Fix negative temperature readings

Fix bug where signed data was processed as unsigned.  The bug previously
resulted in negative temperature readings wrapping around, eg -10 became
245.

Signed-off-by: Jeff Dischler <jdischler@xes-inc.com>
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
drivers/hwmon/ds1621.c