drivers: imu: adis16475.c: Remove scan index from delta channels
authorRamona Gradinariu <ramona.gradinariu@analog.com>
Thu, 12 Oct 2023 12:24:56 +0000 (15:24 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 14 Oct 2023 16:04:08 +0000 (17:04 +0100)
commitba251b20152c3bc6edaa05413090ca5b5f8deb7f
treedb89ce478fc0095097fbd5914e26afa87e29874f
parente9d8add6e72b1642bcf895601146c713d068775a
drivers: imu: adis16475.c: Remove scan index from delta channels

Some devices do not support delta angle and delta velocity
burst readings, which means there should be no buffer support
for these types of channels.
A new list of channels is created which contains the delta
channels structures with the scan index equal to -1 to allow
for raw register readings, without buffer support.
This list of channels is assigned to the devices which
do not support delta angle and delta velocity burst
readings.

Fixes: 8f6bc87d67c0 ("iio: imu: adis16475.c: Add delta angle and delta velocity channels")
Signed-off-by: Ramona Gradinariu <ramona.gradinariu@analog.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20231012122456.765709-2-ramona.gradinariu@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16475.c