ab8500-fg: Allow capacity to raise from 1% when charging
authorHakan Berg <hakan.berg@stericsson.com>
Mon, 23 Jul 2012 12:00:50 +0000 (14:00 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Mar 2013 04:35:44 +0000 (12:35 +0800)
commit642776182c2412739f433d84da0ab8872a0509a8
tree51c378680815fbc204c8af7774d6673a8cb80002
parent908fe8d6a575e2bdf349ba8635b862eeb91f7ade
ab8500-fg: Allow capacity to raise from 1% when charging

When battery capacity was going below 1% fg is not supposed
to report 0% unless we've got the LOW_BAT IRQ, no matter
what the FG-algorithm says. This made fg get stuck at 1% if
charger is connected when capacity is 1%.

Signed-off-by: Hakan BERG <hakan.berg@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
drivers/power/ab8500_fg.c