Home
last modified time | relevance | path

Searched refs:vref_uv (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/iio/adc/
H A Dmax11100.c76 int ret, vref_uv; in max11100_read_raw() local
88 vref_uv = regulator_get_voltage(state->vref_reg); in max11100_read_raw()
89 if (vref_uv < 0) in max11100_read_raw()
93 *val = vref_uv / 1000; in max11100_read_raw()
H A Dti-ads7924.c225 int ret, vref_uv; in ads7924_read_raw() local
238 vref_uv = regulator_get_voltage(data->vref_reg); in ads7924_read_raw()
239 if (vref_uv < 0) in ads7924_read_raw()
240 return vref_uv; in ads7924_read_raw()
242 *val = vref_uv / 1000; /* Convert reg voltage to mV */ in ads7924_read_raw()
H A Dimx7d_adc.c114 u32 vref_uv; member
321 info->vref_uv = regulator_get_voltage(info->vref); in imx7d_adc_read_raw()
322 *val = info->vref_uv / 1000; in imx7d_adc_read_raw()
/linux/drivers/iio/dac/
H A Dad7303.c117 int vref_uv; in ad7303_read_raw() local
126 vref_uv = ad7303_get_vref(st, chan); in ad7303_read_raw()
127 if (vref_uv < 0) in ad7303_read_raw()
128 return vref_uv; in ad7303_read_raw()
130 *val = 2 * vref_uv / 1000; in ad7303_read_raw()
/linux/drivers/hwmon/
H A Dads7828.c109 unsigned int vref_uv; in ads7828_probe() local
130 vref_uv = regulator_get_voltage(reg); in ads7828_probe()
131 vref_mv = DIV_ROUND_CLOSEST(vref_uv, 1000); in ads7828_probe()