power: bq2419x: update JEITA_VSET bit based on cable status
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Tue, 6 Oct 2015 07:08:09 +0000 (12:08 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 8 Oct 2015 19:38:57 +0000 (12:38 -0700)
commit13fac6e79b3efe8430bce41d06563105b49dc471
tree612c53295d64a5deb0e4eb0d26a43f21f63cb432
parent8ae78a9396aa8e3dc29433edbfce5c4db3ab413b
power: bq2419x: update JEITA_VSET bit based on cable status

Update JEITA_VSET bit of charger chip in following cases
- set if charger cable connected to device
- clear when input cable disconnected from device
- clear if cable connected to device while powering off.

Bug 1647341

Change-Id: I25100859288eb7602c0434bd3abf581df65218ac
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/812010
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/power/bq2419x-charger.c