From: Martin Bergström <martin.bergst...@stericsson.com>

When the charger is removed we need to go to INIT_RECOVERY
state instead of directly to RECOVERY state.

Signed-off-by: Lee Jones <lee.jo...@linaro.org>
Signed-off-by: Martin Bergstrom <martin.bergst...@stericsson.com>
Reviewed-by: Marcus COOPER <marcus.xm.coo...@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.ab...@stericsson.com>
Tested-by: Jonas ABERG <jonas.ab...@stericsson.com>
---
 drivers/power/ab8500_fg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c
index 238eeee..0378aab 100644
--- a/drivers/power/ab8500_fg.c
+++ b/drivers/power/ab8500_fg.c
@@ -1450,7 +1450,7 @@ static void ab8500_fg_algorithm_discharging(struct 
ab8500_fg *di)
 
                        if (di->recovery_needed) {
                                ab8500_fg_discharge_state_to(di,
-                                       AB8500_FG_DISCHARGE_RECOVERY);
+                                       AB8500_FG_DISCHARGE_INIT_RECOVERY);
 
                                queue_delayed_work(di->fg_wq,
                                        &di->fg_periodic_work, 0);
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to