Lines Matching full:vref
13 * divided voltage is provided by a vref regulator.
17 * | vref |--' .---.
38 struct regulator *vref; member
70 tmp *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
84 *val *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
186 dac->vref = devm_regulator_get(dev, "vref"); in dpot_dac_probe()
187 if (IS_ERR(dac->vref)) in dpot_dac_probe()
188 return dev_err_probe(&pdev->dev, PTR_ERR(dac->vref), in dpot_dac_probe()
189 "failed to get vref regulator\n"); in dpot_dac_probe()
210 ret = regulator_enable(dac->vref); in dpot_dac_probe()
212 dev_err(dev, "failed to enable the vref regulator\n"); in dpot_dac_probe()
225 regulator_disable(dac->vref); in dpot_dac_probe()
235 regulator_disable(dac->vref); in dpot_dac_remove()