diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-02-14 09:24:10 +0000 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-03-07 12:35:38 +0800 |
commit | 4dcdf57773fd45b483fc7613b9e51b89a57d655c (patch) | |
tree | b5ca9c4474c6e58a09ec3429e813a451f84962cb /include/linux/mfd/abx500 | |
parent | 72a90ddbc3d89a63b769ae1b8538c612cf01e675 (diff) | |
download | linux-stable-4dcdf57773fd45b483fc7613b9e51b89a57d655c.tar.gz |
ab8500-bm: Quick re-attach charging behaviour
Due to a bug in some AB8500 ASICs charger removal cannot always
be detected if the removal and reinsertion is done to close in time.
This patch detects above described case and handles the situation
so that charging will be kept turned on.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/abx500')
-rw-r--r-- | include/linux/mfd/abx500/ux500_chargalg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500/ux500_chargalg.h b/include/linux/mfd/abx500/ux500_chargalg.h index d43ac0f35526..110d12f09548 100644 --- a/include/linux/mfd/abx500/ux500_chargalg.h +++ b/include/linux/mfd/abx500/ux500_chargalg.h @@ -17,6 +17,7 @@ struct ux500_charger; struct ux500_charger_ops { int (*enable) (struct ux500_charger *, int, int, int); + int (*check_enable) (struct ux500_charger *, int, int); int (*kick_wd) (struct ux500_charger *); int (*update_curr) (struct ux500_charger *, int); }; |