So like loop this and take the avarage of data and his_1? udelay(100); data = adc_scan(ADC_SCROLLPAD); his_1 = data