mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
module: removed nonstandard props
removed nonstandard props for GKI and there props don't use in sm4350 Change-Id: I3582efcbb8d3ec2a27a0a3862b47ccaf1dfb862a Signed-off-by: mahj8 <mahj8@lenovo.com> Reviewed-on: https://gerrit.mot.com/1809696 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
669ca8d8d6
commit
371ccae267
1 changed files with 0 additions and 47 deletions
|
|
@ -371,7 +371,6 @@ struct smb_mmi_charger {
|
|||
int max_chrg_temp;
|
||||
int last_iusb_ua;
|
||||
bool factory_kill_armed;
|
||||
int gen_log_rate_s;
|
||||
bool demo_mode_usb_suspend;
|
||||
unsigned long flags;
|
||||
|
||||
|
|
@ -1486,17 +1485,12 @@ static void mmi_charger_power_support(struct smb_mmi_charger *chg)
|
|||
static enum power_supply_property smb_mmi_battery_props[] = {
|
||||
POWER_SUPPLY_PROP_PRESENT,
|
||||
POWER_SUPPLY_PROP_CURRENT_MAX,
|
||||
/*MMI_STOPSHIP: PMIC: change by IIO*/
|
||||
//POWER_SUPPLY_PROP_UPDATE_NOW,
|
||||
//POWER_SUPPLY_PROP_USB_OTG,
|
||||
};
|
||||
|
||||
static int smb_mmi_get_property(struct power_supply *psy,
|
||||
enum power_supply_property psp,
|
||||
union power_supply_propval *val)
|
||||
{
|
||||
//struct smb_mmi_charger *chip = power_supply_get_drvdata(psy);
|
||||
|
||||
switch (psp) {
|
||||
case POWER_SUPPLY_PROP_PRESENT:
|
||||
val->intval = 1;
|
||||
|
|
@ -1504,17 +1498,6 @@ static int smb_mmi_get_property(struct power_supply *psy,
|
|||
case POWER_SUPPLY_PROP_CURRENT_MAX:
|
||||
val->intval = -EINVAL;
|
||||
break;
|
||||
/*case POWER_SUPPLY_PROP_UPDATE_NOW:
|
||||
val->intval = chip->gen_log_rate_s;
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_USB_OTG:
|
||||
if (chip->vbus &&
|
||||
regulator_is_enabled(chip->vbus) &&
|
||||
chip->vbus_enabled)
|
||||
val->intval = 1;
|
||||
else
|
||||
val->intval = 0;
|
||||
break;*/
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -1548,36 +1531,6 @@ static int smb_mmi_set_property(struct power_supply *psy,
|
|||
mmi_err(chip,
|
||||
"Couldn't set USBIN_CMD_ICL_OVERRIDE rc=%d\n", rc);
|
||||
break;
|
||||
/*case POWER_SUPPLY_PROP_UPDATE_NOW:
|
||||
chip->gen_log_rate_s = val->intval;
|
||||
power_supply_changed(psy);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_USB_OTG:
|
||||
if (!chip->vbus) {
|
||||
chip->vbus = devm_regulator_get(chip->dev, "vbus");
|
||||
if (IS_ERR(chip->vbus)) {
|
||||
mmi_err(chip, "Unable to get vbus\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
if (val->intval) {
|
||||
rc = regulator_enable(chip->vbus);
|
||||
mmi_info(chip, "VBUS Enable\n");
|
||||
} else if (chip->vbus_enabled) {
|
||||
rc = regulator_disable(chip->vbus);
|
||||
mmi_info(chip, "VBUS Disable\n");
|
||||
}
|
||||
|
||||
if (rc)
|
||||
mmi_err(chip, "Unable to %s vbus (%d)\n",
|
||||
val->intval ? "enable" : "disable", rc);
|
||||
else if (val->intval)
|
||||
chip->vbus_enabled = true;
|
||||
else
|
||||
chip->vbus_enabled = false;
|
||||
|
||||
break;*/
|
||||
default:
|
||||
rc = -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue