projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d1ad0f
)
staging:iio:gyro:adis16260 fix missing num_channels setup.
author
Jonathan Cameron
<jic23@cam.ac.uk>
Fri, 1 Jul 2011 10:13:36 +0000
(11:13 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 6 Jul 2011 03:31:35 +0000
(20:31 -0700)
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: stable <stable@kernel.org> [3.0]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/gyro/adis16260_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/gyro/adis16260_core.c
b/drivers/staging/iio/gyro/adis16260_core.c
index
801c820
..
05797f4
100644
(file)
--- a/
drivers/staging/iio/gyro/adis16260_core.c
+++ b/
drivers/staging/iio/gyro/adis16260_core.c
@@
-615,7
+615,7
@@
static int __devinit adis16260_probe(struct spi_device *spi)
}
else
indio_dev->channels = adis16260_channels_x;
-
+ indio_dev->num_channels = ARRAY_SIZE(adis16260_channels_x);
indio_dev->modes = INDIO_DIRECT_MODE;
ret = adis16260_configure_ring(indio_dev);