Commit 1be244a840f9a162e3c832d7c1686100a6096a7c

Authored by Patil, Rachna
1 parent adb9fa13a4

IIO: ti_adc: Remove unused fifocount variable.

This line was added during debug, missed removing
fifo1count variable. Update the code.

Signed-off-by: Patil, Rachna <rachna@ti.com>

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

drivers/staging/iio/adc/ti_adc.c
... ... @@ -157,11 +157,10 @@
157 157 {
158 158 struct iio_dev *idev = private;
159 159 struct adc_device *adc_dev = iio_priv(idev);
160   - unsigned int status, fifo1count, config;
  160 + unsigned int status, config;
161 161  
162 162 status = adc_readl(adc_dev, TSCADC_REG_IRQSTATUS);
163 163 if (status & TSCADC_IRQENB_FIFO1THRES) {
164   - fifo1count = adc_readl(adc_dev, TSCADC_REG_FIFO1CNT);
165 164 adc_writel(adc_dev, TSCADC_REG_IRQCLR,
166 165 TSCADC_IRQENB_FIFO1THRES);
167 166