]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:iio:accel:adis16209: Fix double registration of in_incli0_index
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 2 Sep 2011 16:25:35 +0000 (17:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:03:34 +0000 (16:03 -0700)
iio (null): tried to double register : in_incli0_index

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/adis16209_core.c

index 377c6d790ca351de70dc1d50e42e15c9cca0fa28..97dca8866df45fa676734b9b69b6ec307d226e6b 100644 (file)
@@ -432,11 +432,11 @@ static struct iio_chan_spec adis16209_channels[] = {
                 (1 << IIO_CHAN_INFO_SCALE_SEPARATE),
                 in_aux, ADIS16209_SCAN_AUX_ADC,
                 IIO_ST('u', 12, 16, 0), 0),
-       IIO_CHAN(IIO_INCLI, 0, 1, 0, NULL, 0, IIO_MOD_X,
+       IIO_CHAN(IIO_INCLI, 1, 0, 0, NULL, 0, IIO_MOD_X,
                 (1 << IIO_CHAN_INFO_SCALE_SHARED),
                 incli_x, ADIS16209_SCAN_INCLI_X,
                 IIO_ST('s', 14, 16, 0), 0),
-       IIO_CHAN(IIO_INCLI, 0, 1, 0, NULL, 0, IIO_MOD_Y,
+       IIO_CHAN(IIO_INCLI, 1, 0, 0, NULL, 0, IIO_MOD_Y,
                 (1 << IIO_CHAN_INFO_SCALE_SHARED),
                 incli_y, ADIS16209_SCAN_INCLI_Y,
                 IIO_ST('s', 14, 16, 0), 0),