diff options
author | Martin Bergström <martin.bergstrom@stericsson.com> | 2012-05-04 08:43:50 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-01-23 09:39:17 -0500 |
commit | ffaa39d9edd7e3d620d14d574485e814edbf3950 (patch) | |
tree | 2a8086bd51f4330b4c4f460a320baac59b58abd8 /drivers/power | |
parent | b016322293c7e3b7efb1835603d149c03d00b0df (diff) |
ab8500-fg: Go to INIT_RECOVERY when charger removed
When the charger is removed we need to go to INIT_RECOVERY
state instead of directly to RECOVERY state.
Signed-off-by: Martin Bergstrom <martin.bergstrom@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/ab8500_fg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index a0cbbd393fc9..c791a5cef2b1 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c | |||
@@ -1641,7 +1641,7 @@ static void ab8500_fg_algorithm_discharging(struct ab8500_fg *di) | |||
1641 | 1641 | ||
1642 | if (di->recovery_needed) { | 1642 | if (di->recovery_needed) { |
1643 | ab8500_fg_discharge_state_to(di, | 1643 | ab8500_fg_discharge_state_to(di, |
1644 | AB8500_FG_DISCHARGE_RECOVERY); | 1644 | AB8500_FG_DISCHARGE_INIT_RECOVERY); |
1645 | 1645 | ||
1646 | queue_delayed_work(di->fg_wq, | 1646 | queue_delayed_work(di->fg_wq, |
1647 | &di->fg_periodic_work, 0); | 1647 | &di->fg_periodic_work, 0); |