Commit 00bf692b authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-smblite: Update USB-type based on charger type



Currently, USB power supply type is set to POWER_SUPPLY_TYPE_USB
in power supply descriptor. power_supply_show_property() shows
POWER_SUPPLY_PROP_TYPE based on psy->desc->type. Userspace
process like healthd would read POWER_SUPPLY_PROP_TYPE to print
the adapter type in logs (e.g. "chg=u" for SDP, "chg=a" for DCP).
Hence update usb_psy_desc type runtime to show the USB power
supply type accordingly.

Add CURRENT_MAX and VOLTAGE_MAX properties to enable userspace to
identify slow/fast charging.

Change-Id: Ic5b918434c63f71c412f782564e7a7aa818da6ff
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent c16168ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment