Skip to content

Commit

Permalink
iio: ti_am335x_adc: Adjust the closing bracket in tiadc_read_raw()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Andrzej Siewior authored and Lee Jones committed Jan 7, 2014
1 parent 6ce4eac commit fb7f8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/ti_am335x_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit fb7f8ce

Please sign in to comment.