Commit 735165a8 authored by Peter Meerwald's avatar Peter Meerwald Committed by Jonathan Cameron

staging:iio:accel:sca3000: Channels missing in temp_output case

issues introduced here 25888dc5,
staging:iio:sca3000 extract old event handling and move to poll for events
Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 84bb9cdd
......@@ -1170,11 +1170,10 @@ static int sca3000_probe(struct spi_device *spi)
indio_dev->name = spi_get_device_id(spi)->name;
if (st->info->temp_output)
indio_dev->info = &sca3000_info_with_temp;
else {
else
indio_dev->info = &sca3000_info;
indio_dev->channels = sca3000_channels;
indio_dev->num_channels = ARRAY_SIZE(sca3000_channels);
}
indio_dev->channels = sca3000_channels;
indio_dev->num_channels = ARRAY_SIZE(sca3000_channels);
indio_dev->modes = INDIO_DIRECT_MODE;
sca3000_configure_ring(indio_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment