power: ds2781: Fix reporting of negative temperatures
authorGreg Meiste <w30289@motorola.com>
Tue, 21 Sep 2010 19:57:22 +0000 (14:57 -0500)
committerColin Cross <ccross@android.com>
Thu, 7 Oct 2010 00:01:23 +0000 (17:01 -0700)
commitdda08880ac3fb7880e81674f7f8ac5e81f8b06e5
treec4a8d27d5b1af78c26ddbf94c65fd73510d390ea
parentcb0a27a5fbb9e68a4ea00d8eb371eed2df890755
power: ds2781: Fix reporting of negative temperatures

Need to save the temperature in a signed variable.  Otherwise, when the
temperature is below zero, an extremely hot temperature is reported to
the system, causing the device to power down.

Change-Id: I243bfc0fd1e1d76b2986e9def624de2b7782d731
Signed-off-by: Greg Meiste <w30289@motorola.com>
drivers/power/ds2781_battery.c