summaryrefslogtreecommitdiffstats
path: root/include/linux/iio
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-11-20 13:36:00 +0000
committerJonathan Cameron <jic23@kernel.org>2012-11-20 21:28:51 +0000
commit2f3abe6cbb6c963ac790b40936b6761c9f0497b4 (patch)
tree1050db75a5d9c8040c500e10e5a308ab5d2ed5df /include/linux/iio
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')
-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 e82cd0827e9..ff781dca2e9 100644
--- a/include/linux/iio/imu/adis.h
+++ b/include/linux/iio/imu/adis.h
@@ -20,6 +20,8 @@
#define ADIS_PAGE_SIZE 0x80
#define ADIS_REG_PAGE_ID 0x00
+struct adis;
+
/**
* struct adis_data - ADIS chip variant specific data
* @read_delay: SPI delay for read operations in us
@@ -44,6 +46,8 @@ struct adis_data {
const char * const *status_error_msgs;
unsigned int status_error_mask;
+ int (*enable_irq)(struct adis *adis, bool enable);
+
bool has_paging;
};