Lines Matching refs:vref
41 struct regulator *vref[4];
202 priv->vref[MX25_ADC_REFP_INT] = NULL;
203 priv->vref[MX25_ADC_REFP_EXT] =
204 devm_regulator_get_optional(&pdev->dev, "vref-ext");
205 priv->vref[MX25_ADC_REFP_XP] =
206 devm_regulator_get_optional(&pdev->dev, "vref-xp");
207 priv->vref[MX25_ADC_REFP_YP] =
208 devm_regulator_get_optional(&pdev->dev, "vref-yp");
236 if (IS_ERR(priv->vref[refp])) {
237 dev_err(dev, "Error, trying to use external voltage reference without a vref-%s regulator.",
240 return PTR_ERR(priv->vref[refp]);
243 regulator_get_voltage(priv->vref[refp]);
291 if (!IS_ERR_OR_NULL(priv->vref[i]))
292 devm_regulator_put(priv->vref[i]);
293 priv->vref[i] = NULL;
335 if (!priv->vref[i])
338 ret = regulator_enable(priv->vref[i]);
387 if (priv->vref[i])
388 regulator_disable(priv->vref[i]);
403 if (priv->vref[i])
404 regulator_disable(priv->vref[i]);