OSDN Git Service

smb-lib: allow reading vbus without presence
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>
Wed, 20 Sep 2017 01:04:15 +0000 (18:04 -0700)
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>
Wed, 20 Sep 2017 01:18:22 +0000 (18:18 -0700)
commiteab089bd20bf15aa4eb939877d90d6345c898e0b
treee92c7c095be98a95895a3634d200cc483f0e23a5
parent6f777b2385c98a17d69bbeead6edbc7ad7470f72
smb-lib: allow reading vbus without presence

Currently the driver skips invoking adc api's if usb is not
present i.e. vbus has fallen below 3.3V.

This presence check is not required for the vbus. Skip that
check.

Change-Id: I4a2dd91109a308b553b7407618ee8f3221127f61
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
drivers/power/supply/qcom/smb-lib.c