Lines Matching full:vref
31 struct regulator *vref; member
39 if (priv->vref) in iio_sd_mod_enable()
40 return regulator_enable(priv->vref); in iio_sd_mod_enable()
49 if (priv->vref) in iio_sd_mod_disable()
50 regulator_disable(priv->vref); in iio_sd_mod_disable()
106 struct regulator *vref; in iio_sd_mod_probe() local
122 vref = devm_regulator_get_optional(dev, "vref"); in iio_sd_mod_probe()
123 if (IS_ERR(vref)) { in iio_sd_mod_probe()
124 if (PTR_ERR(vref) != -ENODEV) in iio_sd_mod_probe()
125 return dev_err_probe(dev, PTR_ERR(vref), "Failed to get vref\n"); in iio_sd_mod_probe()
131 ret = regulator_get_voltage(vref); in iio_sd_mod_probe()
135 priv->vref = vref; in iio_sd_mod_probe()