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

Skip to content
Commit 73920348 authored by Anirudh Ghayal's avatar Anirudh Ghayal
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 17aa9d79
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