]> Pileus Git - ~andy/linux/commitdiff
iio: ti_am335x_adc: Adjust the closing bracket in tiadc_read_raw()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 19 Dec 2013 15:28:27 +0000 (16:28 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 7 Jan 2014 08:37:18 +0000 (08:37 +0000)
It somehow looks like the ending bracket belongs to the if statement but
it does belong to the while loop. This patch moves the bracket where it
belongs.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/iio/adc/ti_am335x_adc.c

index 728411ec764203c371270c390ac77176d788ffd9..ce8d03ac900fdd444f60e49e5f536aabce0074b4 100644 (file)
@@ -338,7 +338,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
        while (tiadc_readl(adc_dev, REG_ADCFSM) & SEQ_STATUS) {
                if (time_after(jiffies, timeout))
                        return -EAGAIN;
-               }
+       }
        map_val = chan->channel + TOTAL_CHANNELS;
 
        /*