Lines Matching full:vref_reg
95 struct regulator *vref_reg; member
377 if (!st->vref_reg) { in ads131e08_config_reference_voltage()
520 if (st->vref_reg) { in ads131e08_read_raw()
521 ret = regulator_get_voltage(st->vref_reg); in ads131e08_read_raw()
793 regulator_disable(st->vref_reg); in ads131e08_regulator_disable()
869 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ads131e08_probe()
870 if (!IS_ERR(st->vref_reg)) { in ads131e08_probe()
871 ret = regulator_enable(st->vref_reg); in ads131e08_probe()
882 if (PTR_ERR(st->vref_reg) != -ENODEV) in ads131e08_probe()
883 return PTR_ERR(st->vref_reg); in ads131e08_probe()
885 st->vref_reg = NULL; in ads131e08_probe()