Lines Matching full:vref_reg
34 * @vref_reg: reference to VREF regulator
45 struct regulator *vref_reg; member
107 return regulator_get_voltage(st->vref_reg); in ad7303_get_vref()
229 st->vref_reg = devm_regulator_get_optional(&spi->dev, "REF"); in ad7303_probe()
230 if (IS_ERR(st->vref_reg)) { in ad7303_probe()
231 ret = PTR_ERR(st->vref_reg); in ad7303_probe()
234 st->vref_reg = NULL; in ad7303_probe()
237 if (st->vref_reg) { in ad7303_probe()
238 ret = regulator_enable(st->vref_reg); in ad7303_probe()
258 if (st->vref_reg) in ad7303_probe()
259 regulator_disable(st->vref_reg); in ad7303_probe()
272 if (st->vref_reg) in ad7303_remove()
273 regulator_disable(st->vref_reg); in ad7303_remove()