Lines Matching defs:vref_n
46 struct regulator *vref_n;
253 if (!IS_ERR(adc->vref_n)) {
254 ret = regulator_get_voltage(adc->vref_n);
266 if (!IS_ERR(adc->vref_n)) {
267 *value = regulator_get_voltage(adc->vref_n);
447 adc->vref_n = devm_regulator_get_optional(&spi->dev, "vref-n");
448 if (IS_ERR(adc->vref_n)) {
450 * Assume vref_n is 0V if an optional regulator is not
453 ret = PTR_ERR(adc->vref_n);
471 if (!IS_ERR(adc->vref_n)) {
472 ret = regulator_enable(adc->vref_n);
496 if (!IS_ERR(adc->vref_n))
497 regulator_disable(adc->vref_n);
513 if (!IS_ERR(adc->vref_n))
514 regulator_disable(adc->vref_n);