diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-07-01 10:13:36 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-06 03:31:35 (GMT) |
commit | 7bcf302ff151da6559261bc73e8b9d1ae31cc0bb (patch) | |
tree | 274aec10f27657f2a4cf254fe6b728d308ac335a /drivers | |
parent | 6d1ad0f8aa9d3caf6e3f26ad39b43c687abd9c82 (diff) | |
download | linux-7bcf302ff151da6559261bc73e8b9d1ae31cc0bb.tar.xz |
staging:iio:gyro:adis16260 fix missing num_channels setup.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/gyro/adis16260_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/gyro/adis16260_core.c b/drivers/staging/iio/gyro/adis16260_core.c index 801c820..05797f4 100644 --- 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); |