Lines Matching refs: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);
446 adc->vref_n = devm_regulator_get_optional(&spi->dev, "vref-n");
447 if (IS_ERR(adc->vref_n)) {
449 * Assume vref_n is 0V if an optional regulator is not
452 ret = PTR_ERR(adc->vref_n);
470 if (!IS_ERR(adc->vref_n)) {
471 ret = regulator_enable(adc->vref_n);
495 if (!IS_ERR(adc->vref_n))
496 regulator_disable(adc->vref_n);
512 if (!IS_ERR(adc->vref_n))
513 regulator_disable(adc->vref_n);