ab8500_btemp: Allign battery temperature resolution with the framework
authorLee Jones <lee.jones@linaro.org>
Fri, 11 Jan 2013 13:12:56 +0000 (13:12 +0000)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 16 Jan 2013 01:44:28 +0000 (17:44 -0800)
commit5b41aa9f2b3a4e44ca4f68cd3076856bd3d93462
treeac47729034c49bbdf8e8e83dd4e68db7a1f424cf
parent129d583b4432375a9559708882172320e4c8fb94
ab8500_btemp: Allign battery temperature resolution with the framework

The Linux Power Supply framework expects battery temperatures to have
a resolution of 0.1 degree Celsius; however, the AB8500 btemp driver
supplies a battery temperature resolution of 1 degree Celsius. We
therefore have to use a factor 10 on the measured values.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/ab8500_btemp.c