Loading drivers/power/supply/qcom/step-chg-jeita.c +5 −3 Original line number Diff line number Diff line /* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. /* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -597,10 +597,12 @@ static int handle_step_chg_config(struct step_chg_info *chip) if (!chip->fcc_votable) return -EINVAL; if (chip->taper_fcc) if (chip->taper_fcc) { taper_fcc_step_chg(chip, chip->step_index, pval.intval); else } else { fcc_ua = chip->step_chg_config->fcc_cfg[chip->step_index].value; vote(chip->fcc_votable, STEP_CHG_VOTER, true, fcc_ua); } pr_debug("%s = %d Step-FCC = %duA taper-fcc: %d\n", chip->step_chg_config->param.prop_name, pval.intval, Loading Loading
drivers/power/supply/qcom/step-chg-jeita.c +5 −3 Original line number Diff line number Diff line /* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. /* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -597,10 +597,12 @@ static int handle_step_chg_config(struct step_chg_info *chip) if (!chip->fcc_votable) return -EINVAL; if (chip->taper_fcc) if (chip->taper_fcc) { taper_fcc_step_chg(chip, chip->step_index, pval.intval); else } else { fcc_ua = chip->step_chg_config->fcc_cfg[chip->step_index].value; vote(chip->fcc_votable, STEP_CHG_VOTER, true, fcc_ua); } pr_debug("%s = %d Step-FCC = %duA taper-fcc: %d\n", chip->step_chg_config->param.prop_name, pval.intval, Loading