]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
power: bq2419x: correctly check for thermal profile data
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 25 Apr 2014 10:40:12 +0000 (16:10 +0530)
committerMandar Padmawar <mpadmawar@nvidia.com>
Wed, 7 May 2014 08:16:45 +0000 (01:16 -0700)
commit774f8218938df64ff19de0de31ab78608bb442f8
tree45f0547153a1ed99e825058b19a32661def357c1
parent91bd52d1b1eb9cacee9883bba874f594b314ed65
power: bq2419x: correctly check for thermal profile data

The number of entry for temp range on DT node is counted
using of calls. If there is no entry then it returns -ve
error. Taking care of -ve returns on the entry count.

This will avoid the wrong error message as:
bq2419x 1-006b: voltage thermal profile is not correct

Change-Id: I573d392123c15241c521c3c3d80f988b8b1f25f7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/401497
Reviewed-on: http://git-master/r/405641
GVS: Gerrit_Virtual_Submit
drivers/power/bq2419x-charger.c