Commit f5c5d60c authored by David Keitel's avatar David Keitel
Browse files

otg: msm_otg: add power_supply usb



To further decouple and step away from using
proprietary APIs between individual driver
have the MSM OTG driver register its own USB
power supply to allow any charger driver to
subscribe to notifications for it and also
use the power_supply_set_online and
power_supply_set_present APIs to notfiy the driver
of USB connections.

For example the 8941 charger PMIC driver handles
the USBIN_VALID interrupt and has to call
power_supply_set_present to notify the OTG driver.

This can now be done from virtually any driver that
provides a supplicant power supply such as "battery"
and provides the external_power_changed callback.

Change-Id: Ie4735a9d4cd5aaf249971bdf3e13efef83fdb983
Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
parent 80668954
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment