Skip to content

Commit

Permalink
staging:iio:gyro:adis16260 fix missing num_channels setup.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Jul 6, 2011
1 parent 6d1ad0f commit 7bcf302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/gyro/adis16260_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7bcf302

Please sign in to comment.