Lines Matching refs:vref
41 struct regulator *vref[4]; member
202 priv->vref[MX25_ADC_REFP_INT] = NULL; in mx25_gcq_setup_cfgs()
203 priv->vref[MX25_ADC_REFP_EXT] = in mx25_gcq_setup_cfgs()
205 priv->vref[MX25_ADC_REFP_XP] = in mx25_gcq_setup_cfgs()
207 priv->vref[MX25_ADC_REFP_YP] = in mx25_gcq_setup_cfgs()
236 if (IS_ERR(priv->vref[refp])) { in mx25_gcq_setup_cfgs()
240 return PTR_ERR(priv->vref[refp]); in mx25_gcq_setup_cfgs()
243 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs()
291 if (!IS_ERR_OR_NULL(priv->vref[i])) in mx25_gcq_setup_cfgs()
292 devm_regulator_put(priv->vref[i]); in mx25_gcq_setup_cfgs()
293 priv->vref[i] = NULL; in mx25_gcq_setup_cfgs()
335 if (!priv->vref[i]) in mx25_gcq_probe()
338 ret = regulator_enable(priv->vref[i]); in mx25_gcq_probe()
387 if (priv->vref[i]) in mx25_gcq_probe()
388 regulator_disable(priv->vref[i]); in mx25_gcq_probe()
403 if (priv->vref[i]) in mx25_gcq_remove()
404 regulator_disable(priv->vref[i]); in mx25_gcq_remove()