iio: adis16400: Fix burst transfer for adis16448

commit d046ba268a upstream.

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: 76ada52f7f ("iio:adis16400: Add support for the adis16448")
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Lars-Peter Clausen 2015-05-15 17:18:38 +02:00 • committed by Luis Henriques
commit 5cffac46e3
3 changed files with 12 additions and 2 deletions