power: ds2781: Check if charger already attached when probed
authorGreg Meiste <w30289@motorola.com>
Thu, 5 Aug 2010 16:15:08 +0000 (11:15 -0500)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:33:30 +0000 (16:33 -0700)
commit81a8a0e81ebdcf85b90fb0a7c8d1353f6e456834
tree5e21495502df6943ae8108385a9bebd6cec23c48
parent28a370a412ec945a672e582d3069152a0741682b
power: ds2781: Check if charger already attached when probed

If Stingray is powered up with a charger already attached, the battery
driver would not report charging to the system, even though the battery
was being charged.  This charges the DS2781 battery driver to check
if a charger is already present when the driver is probed.

Change-Id: I786e34a4699a545f5a03995db5df457cd7f63773
Signed-off-by: Greg Meiste <w30289@motorola.com>
drivers/power/ds2781_battery.c