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

Commit 3c82d283 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

smb-lib: update USB max voltage reporting



Update USB max. voltage reporting to report voltage for
for HVDCP3 adapter.

Change-Id: I36d5b085c9d4ba1947a48db51a1ac6d0348f5bc9
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent a8118139
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2279,6 +2279,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;