Lines Matching full:vref_reg
32 * @vref_reg: reference to VREF regulator
43 struct regulator *vref_reg; member
105 return regulator_get_voltage(st->vref_reg); in ad7303_get_vref()
227 st->vref_reg = devm_regulator_get_optional(&spi->dev, "REF"); in ad7303_probe()
228 if (IS_ERR(st->vref_reg)) { in ad7303_probe()
229 ret = PTR_ERR(st->vref_reg); in ad7303_probe()
232 st->vref_reg = NULL; in ad7303_probe()
235 if (st->vref_reg) { in ad7303_probe()
236 ret = regulator_enable(st->vref_reg); in ad7303_probe()
256 if (st->vref_reg) in ad7303_probe()
257 regulator_disable(st->vref_reg); in ad7303_probe()
270 if (st->vref_reg) in ad7303_remove()
271 regulator_disable(st->vref_reg); in ad7303_remove()