Lines Matching full:booster
89 * @booster: booster supply reference
107 struct regulator *booster; member
449 * - Voltage booster can be used, to get full ADC performances in stm32_adc_core_switches_supply_en()
479 if (priv->booster) { in stm32_adc_core_switches_supply_en()
484 ret = regulator_enable(priv->booster); in stm32_adc_core_switches_supply_en()
486 dev_err(dev, "booster enable failed %d\n", ret); in stm32_adc_core_switches_supply_en()
489 dev_dbg(dev, "analog switches supplied by booster\n"); in stm32_adc_core_switches_supply_en()
511 if (priv->booster) in stm32_adc_core_switches_supply_dis()
512 regulator_disable(priv->booster); in stm32_adc_core_switches_supply_dis()
603 /* Booster can be used to supply analog switches (optional) */ in stm32_adc_core_switches_probe()
605 of_property_read_bool(np, "booster-supply")) { in stm32_adc_core_switches_probe()
606 priv->booster = devm_regulator_get_optional(dev, "booster"); in stm32_adc_core_switches_probe()
607 if (IS_ERR(priv->booster)) { in stm32_adc_core_switches_probe()
608 ret = PTR_ERR(priv->booster); in stm32_adc_core_switches_probe()
610 return dev_err_probe(dev, ret, "can't get booster\n"); in stm32_adc_core_switches_probe()
612 priv->booster = NULL; in stm32_adc_core_switches_probe()