iio:imu:adis16480: fix buffering for devices with no burst mode
authorNuno Sá <nuno.sa@analog.com>
Fri, 14 Jan 2022 13:26:08 +0000 (14:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Jan 2022 11:21:47 +0000 (11:21 +0000)
commitd4b825bad3206d4110ce7ca861dece6f0a085e58
tree5664fba7fe8cba5d1246479a6cdd481f0f8d8dec
parentc5079cd7c52abfd9bf8aa2b5d3b5b7a1bf5eda7a
iio:imu:adis16480: fix buffering for devices with no burst mode

The trigger handler defined in the driver assumes that burst mode is
being used. Hence, for devices that do not support it, we have to use
the adis library default trigger implementation.

Tested-by: Julia Pineda <julia.pineda@analog.com>
Fixes: 941f130881fa9 ("iio: adis16480: support burst read function")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220114132608.241-1-nuno.sa@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16480.c