power: ds2781: Report charging correctly
authorGreg Meiste <w30289@motorola.com>
Tue, 7 Sep 2010 16:24:08 +0000 (11:24 -0500)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:51:08 +0000 (16:51 -0700)
commitc4f99cbeb9e1b34dbdd67cf102e62ade2d8cb7fa
tree60a4faf540df969be8169d05776fe2e0fe1311b3
parented282351719980f4b76576a381b82a4e414cb279
power: ds2781: Report charging correctly

Previously, charging was being reporting whenever a charger was present.
While true most of the time, there are cases where that won't be the
case.  This patch updates the driver to only report charging if charging
is actually occurring.

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