Lines Matching refs:vref
52 struct regulator *vref;
129 if (adc->vref) {
130 ret = regulator_get_voltage(adc->vref);
133 "failed to get vref voltage: %d\n",
230 if (adc->vref) {
264 adc->vref = devm_regulator_get_optional(&adc->spi->dev, "vref");
265 if (IS_ERR(adc->vref)) {
266 if (PTR_ERR(adc->vref) == -ENODEV) {
267 adc->vref = NULL;
271 PTR_ERR(adc->vref));
272 return PTR_ERR(adc->vref);
276 ret = regulator_enable(adc->vref);
324 if (adc->vref)
325 regulator_disable(adc->vref);
338 if (adc->vref)
339 regulator_disable(adc->vref);