Lines Matching full:vref
26 * @vref: regulator reference
31 struct regulator *vref; member
61 ret = regulator_enable(priv->vref); in stm32_dac_core_hw_start()
63 dev_err(dev, "vref enable failed: %d\n", ret); in stm32_dac_core_hw_start()
76 regulator_disable(priv->vref); in stm32_dac_core_hw_start()
87 regulator_disable(priv->vref); in stm32_dac_core_hw_stop()
121 priv->vref = devm_regulator_get(dev, "vref"); in stm32_dac_probe()
122 if (IS_ERR(priv->vref)) in stm32_dac_probe()
123 return dev_err_probe(dev, PTR_ERR(priv->vref), "vref get failed\n"); in stm32_dac_probe()
133 ret = regulator_get_voltage(priv->vref); in stm32_dac_probe()
135 dev_err(dev, "vref get voltage failed, %d\n", ret); in stm32_dac_probe()
139 dev_dbg(dev, "vref+=%dmV\n", priv->common.vref_mv); in stm32_dac_probe()