power: bq2419x: do not enable charger of battery is not present
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 6 Sep 2013 10:08:15 +0000 (15:08 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Tue, 17 Sep 2013 00:41:08 +0000 (17:41 -0700)
commitefa211a600d9e710ef06f57f895725e4da1c413b
tree59359f337411b46ae0d698437c24f611b7f0e05b
parent522b22cd2666a478890061e257801d320cc6ba83
power: bq2419x: do not enable charger of battery is not present

If ther is no battery connected then do not enable the charging
functionality.

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