Lines Matching refs:vref_reg
65 struct regulator *vref_reg; member
294 st->vref_reg = devm_regulator_get_optional(&st->spi->dev, "vref"); in ad5761_get_vref()
295 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ad5761_get_vref()
308 if (IS_ERR(st->vref_reg)) { in ad5761_get_vref()
311 return PTR_ERR(st->vref_reg); in ad5761_get_vref()
314 ret = regulator_enable(st->vref_reg); in ad5761_get_vref()
321 ret = regulator_get_voltage(st->vref_reg); in ad5761_get_vref()
341 regulator_disable(st->vref_reg); in ad5761_get_vref()
342 st->vref_reg = NULL; in ad5761_get_vref()
389 if (!IS_ERR_OR_NULL(st->vref_reg)) in ad5761_probe()
390 regulator_disable(st->vref_reg); in ad5761_probe()
402 if (!IS_ERR_OR_NULL(st->vref_reg)) in ad5761_remove()
403 regulator_disable(st->vref_reg); in ad5761_remove()