提交 fb7f8ce3 编写于 作者: S Sebastian Andrzej Siewior 提交者: Lee Jones

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: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: NJonathan Cameron <jic23@kernel.org>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 6ce4eac1
...@@ -338,7 +338,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev, ...@@ -338,7 +338,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
while (tiadc_readl(adc_dev, REG_ADCFSM) & SEQ_STATUS) { while (tiadc_readl(adc_dev, REG_ADCFSM) & SEQ_STATUS) {
if (time_after(jiffies, timeout)) if (time_after(jiffies, timeout))
return -EAGAIN; return -EAGAIN;
} }
map_val = chan->channel + TOTAL_CHANNELS; map_val = chan->channel + TOTAL_CHANNELS;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册