aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio/imu
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-11-20 08:36:00 -0500
committerJonathan Cameron <jic23@kernel.org>2012-11-20 16:28:51 -0500
commit2f3abe6cbb6c963ac790b40936b6761c9f0497b4 (patch)
tree1050db75a5d9c8040c500e10e5a308ab5d2ed5df /include/linux/iio/imu
parent6807d7211327dbdd8df3692f3d26ca711514ba71 (diff)
iio:imu: Add support for the ADIS16480 and similar IMUs
This patch adds support for the ADIS16375, ADIS16480, ADIS16485, ADIS16488 6 degree to 10 degree of freedom IMUs. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/imu')
-rw-r--r--include/linux/iio/imu/adis.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/iio/imu/adis.h b/include/linux/iio/imu/adis.h
index e82cd0827e91..ff781dca2e9a 100644
--- a/include/linux/iio/imu/adis.h
+++ b/include/linux/iio/imu/adis.h
@@ -20,6 +20,8 @@
20#define ADIS_PAGE_SIZE 0x80 20#define ADIS_PAGE_SIZE 0x80
21#define ADIS_REG_PAGE_ID 0x00 21#define ADIS_REG_PAGE_ID 0x00
22 22
23struct adis;
24
23/** 25/**
24 * struct adis_data - ADIS chip variant specific data 26 * struct adis_data - ADIS chip variant specific data
25 * @read_delay: SPI delay for read operations in us 27 * @read_delay: SPI delay for read operations in us
@@ -44,6 +46,8 @@ struct adis_data {
44 const char * const *status_error_msgs; 46 const char * const *status_error_msgs;
45 unsigned int status_error_mask; 47 unsigned int status_error_mask;
46 48
49 int (*enable_irq)(struct adis *adis, bool enable);
50
47 bool has_paging; 51 bool has_paging;
48}; 52};
49 53