bq27x00_battery: Fix reporting battery temperature
authorPali Rohár <pali.rohar@gmail.com>
Sat, 2 Feb 2013 10:06:09 +0000 (11:06 +0100)
committerAnton Vorontsov <anton@enomsg.org>
Sun, 3 Feb 2013 03:44:08 +0000 (19:44 -0800)
commit5dc3443eb0d9d3688a6e5a3b4ebb9000d81ff6ba
tree44c9c77971b5f1ff7bd29e981ec76193118bfc37
parent60a1c4d41b3af91366bcb2a52b30b2050a48273e
bq27x00_battery: Fix reporting battery temperature

Reported temperature can be also negative, so cache value in non negative
Kelvin degree.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/bq27x00_battery.c