From: Jonathan Cameron Date: Fri, 1 Jul 2011 10:13:36 +0000 (+0100) Subject: staging:iio:gyro:adis16260 fix missing num_channels setup. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7bcf302ff151da6559261bc73e8b9d1ae31cc0bb;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging:iio:gyro:adis16260 fix missing num_channels setup. Signed-off-by: Jonathan Cameron Cc: stable [3.0] Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/gyro/adis16260_core.c b/drivers/staging/iio/gyro/adis16260_core.c index 801c8202c546..05797f404bea 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);