Lines Matching refs:vref
26 struct regulator *vref; member
147 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
148 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
226 info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); in npcm_adc_probe()
227 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
228 ret = regulator_enable(info->vref); in npcm_adc_probe()
241 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe()
242 ret = PTR_ERR(info->vref); in npcm_adc_probe()
281 if (!IS_ERR(info->vref)) in npcm_adc_probe()
282 regulator_disable(info->vref); in npcm_adc_probe()
299 if (!IS_ERR(info->vref)) in npcm_adc_remove()
300 regulator_disable(info->vref); in npcm_adc_remove()