Lines Matching refs:vref_n
46 struct regulator *vref_n; member
253 if (!IS_ERR(adc->vref_n)) { in adc12138_read_raw()
254 ret = regulator_get_voltage(adc->vref_n); in adc12138_read_raw()
266 if (!IS_ERR(adc->vref_n)) { in adc12138_read_raw()
267 *value = regulator_get_voltage(adc->vref_n); in adc12138_read_raw()
447 adc->vref_n = devm_regulator_get_optional(&spi->dev, "vref-n"); in adc12138_probe()
448 if (IS_ERR(adc->vref_n)) { in adc12138_probe()
453 ret = PTR_ERR(adc->vref_n); in adc12138_probe()
471 if (!IS_ERR(adc->vref_n)) { in adc12138_probe()
472 ret = regulator_enable(adc->vref_n); in adc12138_probe()
496 if (!IS_ERR(adc->vref_n)) in adc12138_probe()
497 regulator_disable(adc->vref_n); in adc12138_probe()
513 if (!IS_ERR(adc->vref_n)) in adc12138_remove()
514 regulator_disable(adc->vref_n); in adc12138_remove()