projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce4eac
)
iio: ti_am335x_adc: Adjust the closing bracket in tiadc_read_raw()
author
Sebastian Andrzej Siewior
<
[email protected]
>
Thu, 19 Dec 2013 15:28:27 +0000
(16:28 +0100)
committer
Lee Jones
<
[email protected]
>
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 <
[email protected]
>
Acked-by: Jonathan Cameron <
[email protected]
>
Signed-off-by: Lee Jones <
[email protected]
>
drivers/iio/adc/ti_am335x_adc.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/ti_am335x_adc.c
b/drivers/iio/adc/ti_am335x_adc.c
index 728411ec764203c371270c390ac77176d788ffd9..ce8d03ac900fdd444f60e49e5f536aabce0074b4 100644
(file)
--- 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;
/*