otgcontrol: adapt to changed charger-driver interface
Original "set mode + set online" => "set mode"pull/10/head
parent
fea66edaed
commit
e4330ec5be
|
@ -27,19 +27,6 @@ int otgcontrol_change_otg_charge_mode(struct rm_otgcontrol_data *otgc_data,
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
property_val.intval = 1;
|
||||
ret = power_supply_set_property(otgc_data->pdata->vbus_supply,
|
||||
POWER_SUPPLY_PROP_ONLINE,
|
||||
&property_val);
|
||||
if (ret < 0) {
|
||||
dev_err(otgc_data->dev,
|
||||
"%s: Failed to enable charging after "
|
||||
"changing charger mode\n",
|
||||
__func__);
|
||||
|
||||
return ret;
|
||||
}
|
||||
break;
|
||||
|
||||
case OTG1_CHARGERMODE_OTG:
|
||||
|
@ -57,18 +44,6 @@ int otgcontrol_change_otg_charge_mode(struct rm_otgcontrol_data *otgc_data,
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
property_val.intval = 1;
|
||||
ret = power_supply_set_property(otgc_data->pdata->vbus_supply,
|
||||
POWER_SUPPLY_PROP_ONLINE,
|
||||
&property_val);
|
||||
if (ret < 0) {
|
||||
dev_err(otgc_data->dev,
|
||||
"%s: Failed to enable charging after changing "
|
||||
"charger mode\n",
|
||||
__func__);
|
||||
return ret;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue