diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-12-19 19:28:27 +0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-07 12:37:18 +0400 |
commit | fb7f8ce3bcd12bdfa0940c96ba1d2eddba88d000 (patch) | |
tree | 15fa1c3f1ef8e0e31fab378d4f08c940a5ffbbde /drivers/iio | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
download | linux-fb7f8ce3bcd12bdfa0940c96ba1d2eddba88d000.tar.xz |
iio: ti_am335x_adc: Adjust the closing bracket in tiadc_read_raw()
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/ti_am335x_adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c index 728411ec7642..ce8d03ac900f 100644 --- a/drivers/iio/adc/ti_am335x_adc.c +++ b/drivers/iio/adc/ti_am335x_adc.c @@ -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; /* |