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

Commit e43f25b7 authored by Fenglin Wu's avatar Fenglin Wu Committed by Harry Yang
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 e1d12430
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -556,6 +556,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: