OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b425aa
)
staging:iio:ad2s1200 fix missing parenthesis in a for statment.
author
Jimmy Li
<coder.liss@gmail.com>
Fri, 25 Apr 2014 02:52:00 +0000
(
03:52
+0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 26 Apr 2014 09:51:14 +0000
(10:51 +0100)
Signed-off-by: Jimmy Li <coder.liss@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/resolver/ad2s1200.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/resolver/ad2s1200.c
b/drivers/staging/iio/resolver/ad2s1200.c
index
e2b4820
..
017d2f8
100644
(file)
--- a/
drivers/staging/iio/resolver/ad2s1200.c
+++ b/
drivers/staging/iio/resolver/ad2s1200.c
@@
-107,7
+107,7
@@
static int ad2s1200_probe(struct spi_device *spi)
int pn, ret = 0;
unsigned short *pins = spi->dev.platform_data;
- for (pn = 0; pn < AD2S1200_PN; pn++)
+ for (pn = 0; pn < AD2S1200_PN; pn++)
{
ret = devm_gpio_request_one(&spi->dev, pins[pn], GPIOF_DIR_OUT,
DRV_NAME);
if (ret) {
@@
-115,6
+115,7
@@
static int ad2s1200_probe(struct spi_device *spi)
pins[pn]);
return ret;
}
+ }
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
if (!indio_dev)
return -ENOMEM;