power: qpnp-charger: report full when charger is plugged in at 100 SoC

Previously, the full status was only reported by the battery power
supply after charging completes. However, when at end of charge and the
charger is taken out and plugged back in, charging does not begin
because the battery is technically still full. It is confusing for the
battery power supply to report discharging in this state.

Fix this issue by reporting full if the device is:
	1. not charging
	2. has a charger attached
	3. is at 100% battery

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