Lines Matching full:vref
23 * @vref: regulator reference
28 struct regulator *vref; member
58 ret = regulator_enable(priv->vref); in stm32_dac_core_hw_start()
60 dev_err(dev, "vref enable failed: %d\n", ret); in stm32_dac_core_hw_start()
73 regulator_disable(priv->vref); in stm32_dac_core_hw_start()
84 regulator_disable(priv->vref); in stm32_dac_core_hw_stop()
122 priv->vref = devm_regulator_get(dev, "vref"); in stm32_dac_probe()
123 if (IS_ERR(priv->vref)) in stm32_dac_probe()
124 return dev_err_probe(dev, PTR_ERR(priv->vref), "vref get failed\n"); in stm32_dac_probe()
134 ret = regulator_get_voltage(priv->vref); in stm32_dac_probe()
136 dev_err(dev, "vref get voltage failed, %d\n", ret); in stm32_dac_probe()
140 dev_dbg(dev, "vref+=%dmV\n", priv->common.vref_mv); in stm32_dac_probe()