Searched refs:NUM_READINGS (Results 1 – 3 of 3) sorted by relevance
78 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro98 for (i = 0; i < NUM_READINGS; i++) { in read_voltage_from_INA220()117 voltage_read /= NUM_READINGS; in read_voltage_from_INA220()131 for (i = 0; i < NUM_READINGS; i++) { in read_voltage_from_IR()155 voltage_read /= NUM_READINGS; in read_voltage_from_IR()219 udelay(NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()230 udelay(NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()265 debug("VID: Waited %d us\n", wait * NUM_READINGS * WAIT_FOR_ADC); in set_voltage_to_IR()
108 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro116 for (i = 0; i < NUM_READINGS; i++) { in read_voltage()133 voltage_read /= NUM_READINGS; in read_voltage()168 udelay(wait * NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()174 udelay(wait * NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()194 debug("VID: Waited %d us\n", wait * NUM_READINGS * WAIT_FOR_ADC); in set_voltage()
103 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro110 for (i = 0; i < NUM_READINGS; i++) { in read_voltage()127 voltage_read /= NUM_READINGS; in read_voltage()