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

Commit 2dcec40f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: phy-msm-usb: Fix reporting of POWER_SUPPLY_PROP_PRESENT"

parents 3b2cb3a9 c6ff3a72
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -3701,8 +3701,10 @@ static int otg_power_get_property_usb(struct power_supply *psy,
	case POWER_SUPPLY_PROP_CURRENT_MAX:
	case POWER_SUPPLY_PROP_CURRENT_MAX:
		val->intval = motg->current_max;
		val->intval = motg->current_max;
		break;
		break;
	/* Reflect USB enumeration */
	case POWER_SUPPLY_PROP_PRESENT:
	case POWER_SUPPLY_PROP_PRESENT:
		val->intval = !!test_bit(B_SESS_VLD, &motg->inputs);
		break;
	/* Reflect USB enumeration */
	case POWER_SUPPLY_PROP_ONLINE:
	case POWER_SUPPLY_PROP_ONLINE:
		val->intval = motg->online;
		val->intval = motg->online;
		break;
		break;