mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
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>
This commit is contained in:
parent
6d1ad0f8aa
commit
7bcf302ff1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user