Lines Matching full:vref
26 struct regulator *vref; member
156 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
157 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
237 info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); in npcm_adc_probe()
238 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
239 ret = regulator_enable(info->vref); in npcm_adc_probe()
252 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe()
253 ret = PTR_ERR(info->vref); in npcm_adc_probe()
292 if (!IS_ERR(info->vref)) in npcm_adc_probe()
293 regulator_disable(info->vref); in npcm_adc_probe()
310 if (!IS_ERR(info->vref)) in npcm_adc_remove()
311 regulator_disable(info->vref); in npcm_adc_remove()