power: ds2781: Perform sanity check on capacity
authorGreg Meiste <w30289@motorola.com>
Thu, 28 Oct 2010 14:21:56 +0000 (09:21 -0500)
committerColin Cross <ccross@android.com>
Tue, 2 Nov 2010 23:10:39 +0000 (16:10 -0700)
commit7b1c6c7d577f755165cac32e817f557e2cdc0f8b
tree4909b9bfb1d63453b4f9c5db96708ac0f78c966e
parent15b050f5b4be2919318c86e1ec81753c90ba7daa
power: ds2781: Perform sanity check on capacity

When the factory is installing the batteries, it is inadvertently causing
some batteries to reset their fuel gauge to 0%.  Add a sanity check to
reset the capacity to a reasonable value if this condition is detected.

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