Commit a819c4feafe9eac8d2e756954ab4e111c5b83732

Authored by Russ Dill
Committed by Vaibhav Hiremath
1 parent 337c389543

Revert "IIO: ti_adc: Correct wrong samples received on 1st read in continuous mode"

This reverts commit 478af139295b451c59eeba8f851654964321cbfe.

With a proper fix to this code, this is no longer neccessary.

Signed-off-by: Russ Dill <Russ.Dill@ti.com>

Showing 1 changed file with 0 additions and 9 deletions Side-by-side Diff

drivers/staging/iio/adc/ti_adc.c
... ... @@ -22,7 +22,6 @@
22 22 #include <linux/platform_device.h>
23 23 #include <linux/io.h>
24 24 #include <linux/sched.h>
25   -#include <linux/delay.h>
26 25  
27 26 #include "../iio.h"
28 27 #include "../sysfs.h"
... ... @@ -202,14 +201,6 @@
202 201 iBuf = kmalloc(fifo1count * sizeof(u32), GFP_KERNEL);
203 202 if (iBuf == NULL)
204 203 goto out;
205   -
206   - /*
207   - * Wait for ADC sequencer to settle down.
208   - * There could be a scenario where in we
209   - * try to read data from ADC before
210   - * it is available.
211   - */
212   - udelay(500);
213 204  
214 205 for (i = 0; i < fifo1count; i++) {
215 206 readx1 = adc_readl(adc_dev, TSCADC_REG_FIFO1);