From: Sebastian Andrzej Siewior Date: Thu, 19 Dec 2013 15:28:27 +0000 (+0100) Subject: iio: ti_am335x_adc: Adjust the closing bracket in tiadc_read_raw() X-Git-Tag: v3.14-rc1~142^2~46^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb7f8ce3bcd12bdfa0940c96ba1d2eddba88d000;p=platform%2Fkernel%2Flinux-stable.git 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 Acked-by: Jonathan Cameron Signed-off-by: Lee Jones --- diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c index 728411e..ce8d03a 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; /*