Lines Matching full:reading
116 int reading; in powr1220_read_adc() local
128 * max reading. in powr1220_read_adc()
146 /* get the ADC reading */ in powr1220_read_adc()
151 reading = result >> 4; in powr1220_read_adc()
153 /* get the upper half of the reading */ in powr1220_read_adc()
158 reading |= result << 4; in powr1220_read_adc()
160 /* now convert the reading to a voltage */ in powr1220_read_adc()
161 reading *= ADC_STEP_MV; in powr1220_read_adc()
162 data->adc_values[ch_num] = reading; in powr1220_read_adc()
165 result = reading; in powr1220_read_adc()
167 if (reading > data->adc_maxes[ch_num]) in powr1220_read_adc()
168 data->adc_maxes[ch_num] = reading; in powr1220_read_adc()