From: Michael Hennerich Date: Fri, 2 Sep 2011 16:25:35 +0000 (+0100) Subject: staging:iio:accel:adis16209: Fix double registration of in_incli0_index X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~703 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1067291a23ee1720631c7f81e28b30b9c324df8c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging:iio:accel:adis16209: Fix double registration of in_incli0_index iio (null): tried to double register : in_incli0_index Signed-off-by: Michael Hennerich Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/accel/adis16209_core.c b/drivers/staging/iio/accel/adis16209_core.c index 377c6d790ca3..97dca8866df4 100644 --- a/drivers/staging/iio/accel/adis16209_core.c +++ b/drivers/staging/iio/accel/adis16209_core.c @@ -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),