power: qpnp-charger: fix check for fully charged battery

When reporting the battery state to be full make sure that
both the chg_done property as well as the interrupt status
are set.

This also fixes a problem that once charging resumes that
the chg_done flag is unset and battery is reported as charging
again.

CRs-Fixed: 446370
Change-Id: Idcd62860f3faf502c7c1009bbb04e9c8e8694384
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
1 file changed