Commit 83a2d672 authored by Harry Yang's avatar Harry Yang Committed by Abhijeet Dharmapurikar
Browse files

power: qpnp-smbcharger: return UNKNOWN in case of no charger present



POWER_SUPPLY_TYPE_USB_DCP type is returned in read_usb_type() if no
charger is connected, which might cause APSD to unnecessarily rerun.
To fix it, POWER_SUPPLY_TYPE_UNKNOWN should be returned instead.

A bug is also fixed by returning right after IDEV_STS register
read error in this function .

CRs-fixed: 963745
Change-Id: Ia399e05fe8d0ad13c2f1f272c6737e8798177174
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 1c0ee15c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment