staging:iio:accel:sca3000: Channels missing in temp_output case
authorPeter Meerwald <pmeerw@pmeerw.net>
Mon, 13 Jan 2014 21:28:00 +0000 (21:28 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 18 Jan 2014 11:10:11 +0000 (11:10 +0000)
issues introduced here 25888dc5,
staging:iio:sca3000 extract old event handling and move to poll for events

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/sca3000_core.c

index 159272e9de9e48b6b3f1e9d257ae71d9969b4284..0123bc0f29226fd190276b73a88d8e708dcaa687 100644 (file)
@@ -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);
This page took 0.025933 seconds and 5 git commands to generate.