Lines Matching refs:vref
52 struct regulator *vref; member
129 if (adc->vref) { in mcp3911_read_raw()
130 ret = regulator_get_voltage(adc->vref); in mcp3911_read_raw()
230 if (adc->vref) { in mcp3911_config()
264 adc->vref = devm_regulator_get_optional(&adc->spi->dev, "vref"); in mcp3911_probe()
265 if (IS_ERR(adc->vref)) { in mcp3911_probe()
266 if (PTR_ERR(adc->vref) == -ENODEV) { in mcp3911_probe()
267 adc->vref = NULL; in mcp3911_probe()
271 PTR_ERR(adc->vref)); in mcp3911_probe()
272 return PTR_ERR(adc->vref); in mcp3911_probe()
276 ret = regulator_enable(adc->vref); in mcp3911_probe()
324 if (adc->vref) in mcp3911_probe()
325 regulator_disable(adc->vref); in mcp3911_probe()
338 if (adc->vref) in mcp3911_remove()
339 regulator_disable(adc->vref); in mcp3911_remove()