commit | 1f0ba4067af4bda55b7304e74fc20a245912b728 | [log] [tgz] |
---|---|---|
author | Wenyou Yang <wenyou.yang@atmel.com> | Thu Aug 25 15:19:52 2016 +0800 |
committer | Sebastian Reichel <sre@kernel.org> | Wed Aug 31 16:46:54 2016 +0200 |
tree | 42ae5b0c2505c18adb90897d87255ef086c235b1 | |
parent | 6b021fc91038201ed44e99ae32b6a93c6e8be1f4 [diff] |
power: supply: act8945a_charger: Improve state handling When get the property, first check the charger state machine, then check the status bit to decide what value is assigned to the corresponding property. Retain the SUSCHG bit of REG 0x71 when configure the timers to avoid losting the charger suspending info after boot. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>