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: Fenglin Wu <fenglinw@codeaurora.org>
This commit is contained in:
Fenglin Wu 2017-02-09 09:33:19 +08:00
parent 2aa89ab3ff
commit 03b4799b22

View file

@ -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: