Searched refs:scale_uv (Results 1 – 7 of 7) sorted by relevance
105 int scale_uv; in ad7476_read_raw() local123 scale_uv = regulator_get_voltage(st->reg); in ad7476_read_raw()124 if (scale_uv < 0) in ad7476_read_raw()125 return scale_uv; in ad7476_read_raw()127 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw()129 *val = scale_uv / 1000; in ad7476_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()461 unsigned long long scale_uv; in ad7793_read_raw() local483 scale_uv = (1170ULL * 1000000000ULL * 6ULL); in ad7793_read_raw()488 scale_uv = 1444444444444444ULL; in ad7793_read_raw()494 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1)); in ad7793_read_raw()496 *val2 = scale_uv; in ad7793_read_raw()
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()
231 int scale_uv; in ad5064_read_raw() local238 scale_uv = ad5064_get_vref(st, chan); in ad5064_read_raw()239 if (scale_uv < 0) in ad5064_read_raw()240 return scale_uv; in ad5064_read_raw()242 *val = scale_uv / 1000; in ad5064_read_raw()
207 unsigned long long scale_uv; in ad7192_setup() local291 scale_uv = ((u64)st->int_vref_mv * 100000000) in ad7192_setup()294 scale_uv >>= i; in ad7192_setup()296 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7192_setup()297 st->scale_avail[i][0] = scale_uv; in ad7192_setup()
1526 uint64_t scale_uv; in mxs_lradc_probe() local1615 scale_uv = ((u64)lradc->vref_mv[i] * 100000000) >> in mxs_lradc_probe()1618 do_div(scale_uv, 100000000) * 10; in mxs_lradc_probe()1619 lradc->scale_avail[i][s].integer = scale_uv; in mxs_lradc_probe()