Loading drivers/power/supply/qcom/battery.c +4 −0 Original line number Diff line number Diff line Loading @@ -233,6 +233,10 @@ static ssize_t restrict_chg_store(struct class *c, struct class_attribute *attr, chip->restricted_charging_enabled = !!val; /* disable parallel charger in case of restricted charging */ vote(chip->pl_disable_votable, RESTRICT_CHG_VOTER, chip->restricted_charging_enabled, 0); vote(chip->fcc_votable, RESTRICT_CHG_VOTER, chip->restricted_charging_enabled, chip->restricted_current); Loading drivers/power/supply/qcom/smb-lib.c +4 −0 Original line number Diff line number Diff line Loading @@ -1784,6 +1784,10 @@ int smblib_set_prop_system_temp_level(struct smb_charger *chg, return -EINVAL; chg->system_temp_level = val->intval; /* disable parallel charge in case of system temp level */ vote(chg->pl_disable_votable, THERMAL_DAEMON_VOTER, chg->system_temp_level ? true : false, 0); if (chg->system_temp_level == chg->thermal_levels) return vote(chg->chg_disable_votable, THERMAL_DAEMON_VOTER, true, 0); Loading Loading
drivers/power/supply/qcom/battery.c +4 −0 Original line number Diff line number Diff line Loading @@ -233,6 +233,10 @@ static ssize_t restrict_chg_store(struct class *c, struct class_attribute *attr, chip->restricted_charging_enabled = !!val; /* disable parallel charger in case of restricted charging */ vote(chip->pl_disable_votable, RESTRICT_CHG_VOTER, chip->restricted_charging_enabled, 0); vote(chip->fcc_votable, RESTRICT_CHG_VOTER, chip->restricted_charging_enabled, chip->restricted_current); Loading
drivers/power/supply/qcom/smb-lib.c +4 −0 Original line number Diff line number Diff line Loading @@ -1784,6 +1784,10 @@ int smblib_set_prop_system_temp_level(struct smb_charger *chg, return -EINVAL; chg->system_temp_level = val->intval; /* disable parallel charge in case of system temp level */ vote(chg->pl_disable_votable, THERMAL_DAEMON_VOTER, chg->system_temp_level ? true : false, 0); if (chg->system_temp_level == chg->thermal_levels) return vote(chg->chg_disable_votable, THERMAL_DAEMON_VOTER, true, 0); Loading