Lines Matching full:booster
93 * @booster: booster supply reference
111 struct regulator *booster; member
463 * - Voltage booster can be used, to get full ADC performances in stm32_adc_core_switches_supply_en()
493 if (priv->booster) { in stm32_adc_core_switches_supply_en()
498 ret = regulator_enable(priv->booster); in stm32_adc_core_switches_supply_en()
500 dev_err(dev, "booster enable failed %d\n", ret); in stm32_adc_core_switches_supply_en()
503 dev_dbg(dev, "analog switches supplied by booster\n"); in stm32_adc_core_switches_supply_en()
525 if (priv->booster) in stm32_adc_core_switches_supply_dis()
526 regulator_disable(priv->booster); in stm32_adc_core_switches_supply_dis()
617 /* Booster can be used to supply analog switches (optional) */ in stm32_adc_core_switches_probe()
619 of_property_read_bool(np, "booster-supply")) { in stm32_adc_core_switches_probe()
620 priv->booster = devm_regulator_get_optional(dev, "booster"); in stm32_adc_core_switches_probe()
621 if (IS_ERR(priv->booster)) { in stm32_adc_core_switches_probe()
622 ret = PTR_ERR(priv->booster); in stm32_adc_core_switches_probe()
624 return dev_err_probe(dev, ret, "can't get booster\n"); in stm32_adc_core_switches_probe()
626 priv->booster = NULL; in stm32_adc_core_switches_probe()