diff options
| author | Harry Yang <harryy@codeaurora.org> | 2016-02-26 10:08:13 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 16:02:32 -0700 |
| commit | fe96617b875d6d0d52be41133ae46222e4e85f61 (patch) | |
| tree | 0290a40bf0a96092936a23172f201d622dff1aa1 /tools/perf/scripts/python/syscall-counts.py | |
| parent | c35b73cf03157f8de4d6681d43abe9c3fdfbc906 (diff) | |
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: Harry Yang <harryy@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
