Home
last modified time | relevance | path

Searched refs:vref_uV (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/iio/adc/
H A Dmax1241.c69 int ret, vref_uV; in max1241_read_raw() local
94 vref_uV = regulator_get_voltage(adc->vref); in max1241_read_raw()
96 if (vref_uV < 0) in max1241_read_raw()
97 return vref_uV; in max1241_read_raw()
99 *val = vref_uV / 1000; in max1241_read_raw()
H A Dmax1118.c119 int vref_uV; in max1118_get_vref_mV() local
127 vref_uV = regulator_get_voltage(adc->reg); in max1118_get_vref_mV()
128 if (vref_uV < 0) in max1118_get_vref_mV()
129 return vref_uV; in max1118_get_vref_mV()
130 return vref_uV / 1000; in max1118_get_vref_mV()
H A Dti-ads1119.c102 int vref_uV; member
353 *val = st->vref_uV / 1000; in ads1119_read_raw()
712 st->vref_uV = devm_regulator_get_enable_read_voltage(dev, "vref"); in ads1119_probe()
713 if (st->vref_uV == -ENODEV) { in ads1119_probe()
715 st->vref_uV = ADS1119_VREF_INTERNAL_VAL; in ads1119_probe()
716 } else if (st->vref_uV < 0) { in ads1119_probe()
717 return dev_err_probe(dev, st->vref_uV, "Failed to get vref\n"); in ads1119_probe()