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

Commit 03b4799b authored by Fenglin Wu's avatar Fenglin Wu
Browse files

qpnp-smb2: Make CURRENT_MAX property writeable for usb_psy



Make POWER_SUPPLY_PROP_CURRENT_MAX property writeable for usb_psy to
export an interface to set max USB current.

CRs-Fixed: 1076930
Change-Id: I03493a2e53b390fa4b7cb0d7dfe60163a0d56a88
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 2aa89ab3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -539,6 +539,7 @@ static int smb2_usb_prop_is_writeable(struct power_supply *psy,
		enum power_supply_property psp)
{
	switch (psp) {
	case POWER_SUPPLY_PROP_CURRENT_MAX:
	case POWER_SUPPLY_PROP_TYPEC_POWER_ROLE:
		return 1;
	default: