Searched refs:vref_uV (Results 1 – 3 of 3) sorted by relevance
69 int ret, vref_uV; in max1241_read_raw() local94 vref_uV = regulator_get_voltage(adc->vref); in max1241_read_raw()96 if (vref_uV < 0) in max1241_read_raw()97 return vref_uV; in max1241_read_raw()99 *val = vref_uV / 1000; in max1241_read_raw()
119 int vref_uV; in max1118_get_vref_mV() local127 vref_uV = regulator_get_voltage(adc->reg); in max1118_get_vref_mV()128 if (vref_uV < 0) in max1118_get_vref_mV()129 return vref_uV; in max1118_get_vref_mV()130 return vref_uV / 1000; in max1118_get_vref_mV()
102 int vref_uV; member353 *val = st->vref_uV / 1000; in ads1119_read_raw()712 st->vref_uV = devm_regulator_get_enable_read_voltage(dev, "vref"); in ads1119_probe()713 if (st->vref_uV == -ENODEV) { in ads1119_probe()715 st->vref_uV = ADS1119_VREF_INTERNAL_VAL; in ads1119_probe()716 } else if (st->vref_uV < 0) { in ads1119_probe()717 return dev_err_probe(dev, st->vref_uV, "Failed to get vref\n"); in ads1119_probe()