Lines Matching defs:vref_n
45 struct regulator *vref_n;
251 if (!IS_ERR(adc->vref_n)) {
252 ret = regulator_get_voltage(adc->vref_n);
264 if (!IS_ERR(adc->vref_n)) {
265 *value = regulator_get_voltage(adc->vref_n);
445 adc->vref_n = devm_regulator_get_optional(&spi->dev, "vref-n");
446 if (IS_ERR(adc->vref_n)) {
448 * Assume vref_n is 0V if an optional regulator is not
451 ret = PTR_ERR(adc->vref_n);
469 if (!IS_ERR(adc->vref_n)) {
470 ret = regulator_enable(adc->vref_n);
494 if (!IS_ERR(adc->vref_n))
495 regulator_disable(adc->vref_n);
511 if (!IS_ERR(adc->vref_n))
512 regulator_disable(adc->vref_n);