power: pm8921-charger: add support for invalid battery

Use adc reading on the battery_id resistor to check if a battery
is valid. If it is not disable charging.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
3 files changed