Searched refs:scale_uv (Results 1 – 8 of 8) sorted by relevance
108 int scale_uv; in ad7476_read_raw() local125 scale_uv = regulator_get_voltage(st->reg); in ad7476_read_raw()126 if (scale_uv < 0) in ad7476_read_raw()127 return scale_uv; in ad7476_read_raw()129 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw()131 *val = scale_uv / 1000; in ad7476_read_raw()
134 int scale_uv; in ad7766_read_raw() local138 scale_uv = regulator_get_voltage(vref); in ad7766_read_raw()139 if (scale_uv < 0) in ad7766_read_raw()140 return scale_uv; in ad7766_read_raw()141 *val = scale_uv / 1000; in ad7766_read_raw()
261 unsigned long long scale_uv; in ad7793_setup() local330 scale_uv = ((u64)vref_mv * 100000000) in ad7793_setup()333 scale_uv >>= i; in ad7793_setup()335 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7793_setup()336 st->scale_avail[i][0] = scale_uv; in ad7793_setup()404 unsigned long long scale_uv; in ad7793_read_raw() local426 scale_uv = (1170ULL * 1000000000ULL * 6ULL); in ad7793_read_raw()430 scale_uv = 1444444444444444ULL; in ad7793_read_raw()436 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1)); in ad7793_read_raw()438 *val2 = scale_uv; in ad7793_read_raw()
704 u64 scale_uv; in mxs_lradc_adc_probe() local791 scale_uv = ((u64)adc->vref_mv[i] * 100000000) >> in mxs_lradc_adc_probe()794 do_div(scale_uv, 100000000) * 10; in mxs_lradc_adc_probe()795 adc->scale_avail[i][s].integer = scale_uv; in mxs_lradc_adc_probe()
136 int scale_uv; in ad5449_read_raw() local154 scale_uv = regulator_get_voltage(reg->consumer); in ad5449_read_raw()155 if (scale_uv < 0) in ad5449_read_raw()156 return scale_uv; in ad5449_read_raw()158 *val = scale_uv / 1000; in ad5449_read_raw()
375 int scale_uv; in ad5360_read_raw() local387 scale_uv = ad5360_get_channel_vref(st, chan->channel); in ad5360_read_raw()388 if (scale_uv < 0) in ad5360_read_raw()389 return scale_uv; in ad5360_read_raw()392 *val = scale_uv * 4 / 1000; in ad5360_read_raw()
321 int scale_uv; in ad5064_read_raw() local328 scale_uv = ad5064_get_vref(st, chan); in ad5064_read_raw()329 if (scale_uv < 0) in ad5064_read_raw()330 return scale_uv; in ad5064_read_raw()332 *val = scale_uv / 1000; in ad5064_read_raw()
233 unsigned long long scale_uv; in ad7192_setup() local325 scale_uv = ((u64)st->int_vref_mv * 100000000) in ad7192_setup()328 scale_uv >>= i; in ad7192_setup()330 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7192_setup()331 st->scale_avail[i][0] = scale_uv; in ad7192_setup()