Searched refs:scale_uv (Results 1 – 9 of 9) sorted by relevance
111 int scale_uv; in ad7476_read_raw() local128 scale_uv = regulator_get_voltage(st->reg); in ad7476_read_raw()129 if (scale_uv < 0) in ad7476_read_raw()130 return scale_uv; in ad7476_read_raw()132 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw()134 *val = scale_uv / 1000; in ad7476_read_raw()
133 int scale_uv; in ad7766_read_raw() local137 scale_uv = regulator_get_voltage(vref); in ad7766_read_raw()138 if (scale_uv < 0) in ad7766_read_raw()139 return scale_uv; in ad7766_read_raw()140 *val = scale_uv / 1000; in ad7766_read_raw()
260 unsigned long long scale_uv; in ad7793_setup() local329 scale_uv = ((u64)vref_mv * 100000000) in ad7793_setup()332 scale_uv >>= i; in ad7793_setup()334 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7793_setup()335 st->scale_avail[i][0] = scale_uv; in ad7793_setup()403 unsigned long long scale_uv; in ad7793_read_raw() local425 scale_uv = (1170ULL * 1000000000ULL * 6ULL); in ad7793_read_raw()429 scale_uv = 1444444444444444ULL; in ad7793_read_raw()435 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1)); in ad7793_read_raw()437 *val2 = scale_uv; in ad7793_read_raw()
359 int scale_uv, ret; in ad7768_read_raw() local378 scale_uv = regulator_get_voltage(st->vref); in ad7768_read_raw()379 if (scale_uv < 0) in ad7768_read_raw()380 return scale_uv; in ad7768_read_raw()382 *val = (scale_uv * 2) / 1000; in ad7768_read_raw()
697 u64 scale_uv; in mxs_lradc_adc_probe() local784 scale_uv = ((u64)adc->vref_mv[i] * 100000000) >> in mxs_lradc_adc_probe()787 do_div(scale_uv, 100000000) * 10; in mxs_lradc_adc_probe()788 adc->scale_avail[i][s].integer = scale_uv; in mxs_lradc_adc_probe()
135 int scale_uv; in ad5449_read_raw() local153 scale_uv = regulator_get_voltage(reg->consumer); in ad5449_read_raw()154 if (scale_uv < 0) in ad5449_read_raw()155 return scale_uv; in ad5449_read_raw()157 *val = scale_uv / 1000; in ad5449_read_raw()
374 int scale_uv; in ad5360_read_raw() local386 scale_uv = ad5360_get_channel_vref(st, chan->channel); in ad5360_read_raw()387 if (scale_uv < 0) in ad5360_read_raw()388 return scale_uv; in ad5360_read_raw()391 *val = scale_uv * 4 / 1000; in ad5360_read_raw()
322 int scale_uv; in ad5064_read_raw() local329 scale_uv = ad5064_get_vref(st, chan); in ad5064_read_raw()330 if (scale_uv < 0) in ad5064_read_raw()331 return scale_uv; in ad5064_read_raw()333 *val = scale_uv / 1000; in ad5064_read_raw()
259 unsigned long long scale_uv; in ad7192_setup() local327 scale_uv = ((u64)st->int_vref_mv * 100000000) in ad7192_setup()330 scale_uv >>= i; in ad7192_setup()332 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7192_setup()333 st->scale_avail[i][0] = scale_uv; in ad7192_setup()