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

Commit 63cff18f authored by Zhenhua Huang's avatar Zhenhua Huang
Browse files

USB: phy-msm-usb: mark floated charger as DCP type



Previous design marked floated charger as "unknown charger",
mark it now as "DCP charger".

CRs-Fixed: 569939
Change-Id: I7ccbfe2b5677db45b120e0529702218bad70da0c
Signed-off-by: default avatarZhenhua Huang <zhenhuah@codeaurora.org>
parent 87040ef0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1342,7 +1342,8 @@ static int msm_otg_notify_chg_type(struct msm_otg *motg)
	else if (motg->chg_type == USB_CDP_CHARGER)
		charger_type = POWER_SUPPLY_TYPE_USB_CDP;
	else if (motg->chg_type == USB_DCP_CHARGER ||
			motg->chg_type == USB_PROPRIETARY_CHARGER)
			motg->chg_type == USB_PROPRIETARY_CHARGER ||
			motg->chg_type == USB_FLOATED_CHARGER)
		charger_type = POWER_SUPPLY_TYPE_USB_DCP;
	else if ((motg->chg_type == USB_ACA_DOCK_CHARGER ||
		motg->chg_type == USB_ACA_A_CHARGER ||