Lines Matching full:vref_reg
56 * @vref_reg: reference voltage regulator
65 struct regulator *vref_reg; member
295 st->vref_reg = devm_regulator_get_optional(&st->spi->dev, "vref"); in ad5761_get_vref()
296 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ad5761_get_vref()
309 if (IS_ERR(st->vref_reg)) { in ad5761_get_vref()
312 return PTR_ERR(st->vref_reg); in ad5761_get_vref()
315 ret = regulator_enable(st->vref_reg); in ad5761_get_vref()
322 ret = regulator_get_voltage(st->vref_reg); in ad5761_get_vref()
342 regulator_disable(st->vref_reg); in ad5761_get_vref()
343 st->vref_reg = NULL; in ad5761_get_vref()
391 if (!IS_ERR_OR_NULL(st->vref_reg)) in ad5761_probe()
392 regulator_disable(st->vref_reg); in ad5761_probe()
404 if (!IS_ERR_OR_NULL(st->vref_reg)) in ad5761_remove()
405 regulator_disable(st->vref_reg); in ad5761_remove()