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

Commit 23240fc8 authored by Umang Agrawal's avatar Umang Agrawal
Browse files

power: smb-lib: Modify usb max voltage reflected for QC 3.0 charger



Modify usb VOLTAGE_MAX property's reporting function to add support
for QC 3.0 chargers to reflect maximum VBUS voltage that can be attained
by QC3.0 chargers.

Change-Id: I45c15b4d8daab6eeec5c0bc5b0c19c4baa4ca15f
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 13d21d43
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2238,6 +2238,7 @@ int smblib_get_prop_usb_voltage_max(struct smb_charger *chg,
{
	switch (chg->real_charger_type) {
	case POWER_SUPPLY_TYPE_USB_HVDCP:
	case POWER_SUPPLY_TYPE_USB_HVDCP_3:
	case POWER_SUPPLY_TYPE_USB_PD:
		if (chg->smb_version == PM660_SUBTYPE)
			val->intval = MICRO_9V;