Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9769ef5d authored by Harry Yang's avatar Harry Yang
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 99d7b718
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment