iio: adis16400: Fix burst transfer for adis16448
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 15 May 2015 15:18:38 +0000 (17:18 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 16 May 2015 10:01:20 +0000 (11:01 +0100)
commitd046ba268adb87c7780494ecf897cbafbf100d57
tree5da67104077407d418a7d921b96c34767b8fb724
parent9df560350c90f3d3909fe653399b3584c9a17b61
iio: adis16400: Fix burst transfer for adis16448

The adis16448, unlike the other chips in this family, in addition to the
hardware channels also sends out the DIAG_STAT register in burst mode
before them. Handle that case by skipping over the first 2 bytes before we
pass the received data to the buffer.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Fixes: 76ada52f7f5d ("iio:adis16400: Add support for the adis16448")
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/adis16400.h
drivers/iio/imu/adis16400_buffer.c
drivers/iio/imu/adis16400_core.c