Home
last modified time | relevance | path

Searched refs:voltage_uv (Results 1 – 8 of 8) sorted by relevance

/drivers/staging/iio/adc/
Dad7780.c93 int voltage_uv; in ad7780_read_raw() local
99 voltage_uv = regulator_get_voltage(st->reg); in ad7780_read_raw()
100 if (voltage_uv < 0) in ad7780_read_raw()
101 return voltage_uv; in ad7780_read_raw()
102 *val = (voltage_uv / 1000) * st->gain; in ad7780_read_raw()
173 int ret, voltage_uv = 0; in ad7780_probe() local
190 voltage_uv = regulator_get_voltage(st->reg); in ad7780_probe()
198 else if (voltage_uv) in ad7780_probe()
199 st->int_vref_mv = voltage_uv / 1000; in ad7780_probe()
Dad7192.c624 int ret, voltage_uv = 0; in ad7192_probe() local
648 voltage_uv = regulator_get_voltage(st->reg); in ad7192_probe()
653 else if (voltage_uv) in ad7192_probe()
654 st->int_vref_mv = voltage_uv / 1000; in ad7192_probe()
/drivers/iio/dac/
Dad5624r_spi.c228 int ret, voltage_uv = 0; in ad5624r_probe() local
244 voltage_uv = ret; in ad5624r_probe()
259 voltage_uv = ret; in ad5624r_probe()
267 if (voltage_uv) in ad5624r_probe()
268 st->vref_mv = voltage_uv / 1000; in ad5624r_probe()
282 !!voltage_uv, 16); in ad5624r_probe()
Dad5686.c316 int ret, voltage_uv = 0; in ad5686_probe() local
335 voltage_uv = ret; in ad5686_probe()
341 if (voltage_uv) in ad5686_probe()
342 st->vref_mv = voltage_uv / 1000; in ad5686_probe()
359 !!voltage_uv, 0); in ad5686_probe()
Dad5504.c280 int ret, voltage_uv = 0; in ad5504_probe() local
295 voltage_uv = ret; in ad5504_probe()
300 if (voltage_uv) in ad5504_probe()
301 st->vref_mv = voltage_uv / 1000; in ad5504_probe()
Dad5446.c224 int ret, voltage_uv = 0; in ad5446_probe() local
236 voltage_uv = ret; in ad5446_probe()
263 else if (voltage_uv) in ad5446_probe()
264 st->vref_mv = voltage_uv / 1000; in ad5446_probe()
/drivers/iio/adc/
Dad7791.c228 int voltage_uv; in ad7791_read_raw() local
230 voltage_uv = regulator_get_voltage(st->reg); in ad7791_read_raw()
231 if (voltage_uv < 0) in ad7791_read_raw()
232 return voltage_uv; in ad7791_read_raw()
234 *val = voltage_uv / 1000; in ad7791_read_raw()
/drivers/staging/iio/impedance-analyzer/
Dad5933.c704 int ret, voltage_uv = 0; in ad5933_probe() local
725 voltage_uv = regulator_get_voltage(st->reg); in ad5933_probe()
728 if (voltage_uv) in ad5933_probe()
729 st->vref_mv = voltage_uv / 1000; in ad5933_probe()