summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/adis16400.h
diff options
context:
space:
mode:
authorLars-Peter Clausen2015-05-15 17:18:38 +0200
committerJonathan Cameron2015-05-16 12:01:20 +0200
commitd046ba268adb87c7780494ecf897cbafbf100d57 (patch)
tree5da67104077407d418a7d921b96c34767b8fb724 /drivers/iio/imu/adis16400.h
parentiio: adis16400: Fix burst mode (diff)
downloadkernel-qcow2-linux-d046ba268adb87c7780494ecf897cbafbf100d57.tar.gz
kernel-qcow2-linux-d046ba268adb87c7780494ecf897cbafbf100d57.tar.xz
kernel-qcow2-linux-d046ba268adb87c7780494ecf897cbafbf100d57.zip
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>
Diffstat (limited to 'drivers/iio/imu/adis16400.h')
-rw-r--r--drivers/iio/imu/adis16400.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/imu/adis16400.h b/drivers/iio/imu/adis16400.h
index 1e8fd2e81d45..73b189c1c0fb 100644
--- a/drivers/iio/imu/adis16400.h
+++ b/drivers/iio/imu/adis16400.h
@@ -139,6 +139,7 @@
#define ADIS16400_NO_BURST BIT(1)
#define ADIS16400_HAS_SLOW_MODE BIT(2)
#define ADIS16400_HAS_SERIAL_NUMBER BIT(3)
+#define ADIS16400_BURST_DIAG_STAT BIT(4)
struct adis16400_state;