power: qpnp-charger: Report FULL sooner

At end of charge, the charger driver disables charging for 2 seconds
in order to stop charging. During these two seconds, the charge_done
flag is not set, so querying the battery power supply reports
DISCHARGING. Move setting the charge_done flag above this wait in
order to report FULL charge immediately.

Change-Id: I23e6fa18b626eb7360df23c4f30f660439a041af
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
2 files changed