Loading drivers/power/supply/qcom/qpnp-smb5.c +12 −9 Original line number Original line Diff line number Diff line Loading @@ -159,10 +159,10 @@ static struct smb_params smb5_pm8150b_params = { .freq_switcher = { .freq_switcher = { .name = "switching frequency", .name = "switching frequency", .reg = DCDC_FSW_SEL_REG, .reg = DCDC_FSW_SEL_REG, .min_u = 1200, .min_u = 600, .max_u = 2400, .max_u = 1200, .step_u = 400, .step_u = 400, .set_proc = NULL, .set_proc = smblib_set_chg_freq, }, }, }; }; Loading Loading @@ -242,19 +242,22 @@ static int smb5_chg_config_init(struct smb5 *chip) chg->hw_max_icl_ua = chg->hw_max_icl_ua = (chip->dt.usb_icl_ua > 0) ? chip->dt.usb_icl_ua (chip->dt.usb_icl_ua > 0) ? chip->dt.usb_icl_ua : PMI632_MAX_ICL_UA; : PMI632_MAX_ICL_UA; chg->chg_freq.freq_5V = 600; chg->chg_freq.freq_6V_8V = 800; chg->chg_freq.freq_9V = 1050; chg->chg_freq.freq_removal = 1050; chg->chg_freq.freq_below_otg_threshold = 800; chg->chg_freq.freq_above_otg_threshold = 800; break; break; default: default: pr_err("PMIC subtype %d not supported\n", pr_err("PMIC subtype %d not supported\n", pmic_rev_id->pmic_subtype); pmic_rev_id->pmic_subtype); rc = -EINVAL; rc = -EINVAL; goto out; } } chg->chg_freq.freq_5V = 600; chg->chg_freq.freq_6V_8V = 800; chg->chg_freq.freq_9V = 1050; chg->chg_freq.freq_12V = 1200; chg->chg_freq.freq_removal = 1050; chg->chg_freq.freq_below_otg_threshold = 800; chg->chg_freq.freq_above_otg_threshold = 800; out: out: of_node_put(revid_dev_node); of_node_put(revid_dev_node); return rc; return rc; Loading Loading
drivers/power/supply/qcom/qpnp-smb5.c +12 −9 Original line number Original line Diff line number Diff line Loading @@ -159,10 +159,10 @@ static struct smb_params smb5_pm8150b_params = { .freq_switcher = { .freq_switcher = { .name = "switching frequency", .name = "switching frequency", .reg = DCDC_FSW_SEL_REG, .reg = DCDC_FSW_SEL_REG, .min_u = 1200, .min_u = 600, .max_u = 2400, .max_u = 1200, .step_u = 400, .step_u = 400, .set_proc = NULL, .set_proc = smblib_set_chg_freq, }, }, }; }; Loading Loading @@ -242,19 +242,22 @@ static int smb5_chg_config_init(struct smb5 *chip) chg->hw_max_icl_ua = chg->hw_max_icl_ua = (chip->dt.usb_icl_ua > 0) ? chip->dt.usb_icl_ua (chip->dt.usb_icl_ua > 0) ? chip->dt.usb_icl_ua : PMI632_MAX_ICL_UA; : PMI632_MAX_ICL_UA; chg->chg_freq.freq_5V = 600; chg->chg_freq.freq_6V_8V = 800; chg->chg_freq.freq_9V = 1050; chg->chg_freq.freq_removal = 1050; chg->chg_freq.freq_below_otg_threshold = 800; chg->chg_freq.freq_above_otg_threshold = 800; break; break; default: default: pr_err("PMIC subtype %d not supported\n", pr_err("PMIC subtype %d not supported\n", pmic_rev_id->pmic_subtype); pmic_rev_id->pmic_subtype); rc = -EINVAL; rc = -EINVAL; goto out; } } chg->chg_freq.freq_5V = 600; chg->chg_freq.freq_6V_8V = 800; chg->chg_freq.freq_9V = 1050; chg->chg_freq.freq_12V = 1200; chg->chg_freq.freq_removal = 1050; chg->chg_freq.freq_below_otg_threshold = 800; chg->chg_freq.freq_above_otg_threshold = 800; out: out: of_node_put(revid_dev_node); of_node_put(revid_dev_node); return rc; return rc; Loading