Lines Matching full:vref
34 struct regulator *vref; member
174 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
175 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
260 info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); in npcm_adc_probe()
261 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
262 ret = regulator_enable(info->vref); in npcm_adc_probe()
275 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe()
276 ret = PTR_ERR(info->vref); in npcm_adc_probe()
315 if (!IS_ERR(info->vref)) in npcm_adc_probe()
316 regulator_disable(info->vref); in npcm_adc_probe()
333 if (!IS_ERR(info->vref)) in npcm_adc_remove()
334 regulator_disable(info->vref); in npcm_adc_remove()