Searched refs:vref_mv (Results 1 – 25 of 34) sorted by relevance
12
50 unsigned short vref_mv[2]; member134 unsigned int scale_uv = (data->vref_mv[channel - 1] * 1000) >> 8; in max517_show_scale()245 data->vref_mv[0] = data->vref_mv[1] = 5000; /* mV */ in max517_probe()247 data->vref_mv[0] = platform_data->vref_mv[0]; in max517_probe()248 data->vref_mv[1] = platform_data->vref_mv[1]; in max517_probe()
36 u16 vref_mv; member51 unsigned short vref_mv; member
243 *val2 = (((u64)st->vref_mv) * 1000000ULL) >> chan->scan_type.realbits; in ad5791_read_raw()247 do_div(val64, st->vref_mv); in ad5791_read_raw()319 st->vref_mv = (pos_voltage_uv + neg_voltage_uv) / 1000; in ad5791_probe()322 st->vref_mv = pdata->vref_pos_mv + pdata->vref_neg_mv; in ad5791_probe()336 st->ctrl = AD5761_CTRL_LINCOMP(st->chip_info->get_lin_comp(st->vref_mv)) in ad5791_probe()
93 scale_uv = (st->vref_mv * 1000) >> chan->scan_type.realbits; in ad5504_read_raw()307 st->vref_mv = voltage_uv / 1000; in ad5504_probe()309 st->vref_mv = pdata->vref_mv; in ad5504_probe()
73 unsigned short vref_mv; member309 scale_uv = (st->vref_mv * 100000) in ad5686_read_raw()381 st->vref_mv = voltage_uv / 1000; in ad5686_probe()383 st->vref_mv = st->chip_info->int_vref_mv; in ad5686_probe()
16 u16 vref_mv[2]; member
106 scale_uv = (st->vref_mv * 1000) >> chan->scan_type.realbits; in ad5624r_read_raw()278 st->vref_mv = voltage_uv / 1000; in ad5624r_probe()280 st->vref_mv = st->chip_info->int_vref_mv; in ad5624r_probe()
59 unsigned short vref_mv; member
94 unsigned short vref_mv; member
49 unsigned short vref_mv; member
258 scale_uv = (st->vref_mv * 1000) >> chan->scan_type.realbits; in ad5446_read_raw()363 st->vref_mv = st->chip_info->int_vref_mv; in ad5446_probe()367 st->vref_mv = voltage_uv / 1000; in ad5446_probe()
177 if (pdata && pdata->vref_mv) in ad7887_probe()178 st->int_vref_mv = pdata->vref_mv; in ad7887_probe()187 if (pdata && pdata->vref_mv) in ad7887_probe()188 st->int_vref_mv = pdata->vref_mv; in ad7887_probe()
26 u16 vref_mv; member
35 u16 vref_mv; member
18 u16 vref_mv; member
34 u16 vref_mv; member
101 u16 vref_mv; member
152 else if (pdata && pdata->vref_mv) in ad7476_probe()153 st->int_vref_mv = pdata->vref_mv; in ad7476_probe()
121 u16 vref_mv; member
212 if (pdata && pdata->vref_mv) { in ad7298_probe()213 st->int_vref_mv = pdata->vref_mv; in ad7298_probe()
53 static int vref_mv = ADS7828_INT_VREF_MV; /* set if vref != 2.5V */ variable56 module_param(vref_mv, int, S_IRUGO);259 ads7828_lsb_resol = (vref_mv*1000)/4096; in sensors_ads7828_init()
25 unsigned short vref_mv; member
98 unsigned short vref_mv; member108 .vref_mv = 3300,251 st->range_avail[i] = normalized_3v3[i] * st->vref_mv / 3300; in ad5933_calc_out_ranges()703 st->vref_mv = voltage_uv / 1000; in ad5933_probe()705 st->vref_mv = st->pdata->vref_mv; in ad5933_probe()
17 u16 vref_mv; /* external vref value, milliVolts member