Skip to content

Commit 0a1b664

Browse files
jic23ksacilotto
authored andcommitted
iio:accel:adis16201: Fix wrong axis assignment that prevents loading
BugLink: https://bugs.launchpad.net/bugs/1929615 commit 4e10242 upstream. Whilst running some basic tests as part of writing up the dt-bindings for this driver (to follow), it became clear it doesn't actually load currently. iio iio:device1: tried to double register : in_incli_x_index adis16201 spi0.0: Failed to create buffer sysfs interfaces adis16201: probe of spi0.0 failed with error -16 Looks like a cut and paste / update bug. Fixes tag obviously not accurate but we don't want to bother carry thing back to before the driver moved out of staging. Fixes: 591298e ("Staging: iio: accel: adis16201: Move adis16201 driver out of staging") Signed-off-by: Jonathan Cameron <[email protected]> Cc: <[email protected]> Cc: Himanshu Jha <[email protected]> Cc: Nuno Sá <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Kamal Mostafa <[email protected]> Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
1 parent af8ec3e commit 0a1b664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/accel/adis16201.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static const struct iio_chan_spec adis16201_channels[] = {
215215
ADIS_AUX_ADC_CHAN(ADIS16201_AUX_ADC_REG, ADIS16201_SCAN_AUX_ADC, 0, 12),
216216
ADIS_INCLI_CHAN(X, ADIS16201_XINCL_OUT_REG, ADIS16201_SCAN_INCLI_X,
217217
BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14),
218-
ADIS_INCLI_CHAN(X, ADIS16201_YINCL_OUT_REG, ADIS16201_SCAN_INCLI_Y,
218+
ADIS_INCLI_CHAN(Y, ADIS16201_YINCL_OUT_REG, ADIS16201_SCAN_INCLI_Y,
219219
BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14),
220220
IIO_CHAN_SOFT_TIMESTAMP(7)
221221
};

0 commit comments

Comments
 (0)