diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-11-20 13:36:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-20 21:28:51 +0000 |
commit | 2f3abe6cbb6c963ac790b40936b6761c9f0497b4 (patch) | |
tree | 1050db75a5d9c8040c500e10e5a308ab5d2ed5df /drivers/iio/imu/adis.c | |
parent | 6807d7211327dbdd8df3692f3d26ca711514ba71 (diff) | |
download | linux-2f3abe6cbb6c963ac790b40936b6761c9f0497b4.tar.bz2 |
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 'drivers/iio/imu/adis.c')
-rw-r--r-- | drivers/iio/imu/adis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/imu/adis.c b/drivers/iio/imu/adis.c index c4ea04ffa60e..911255d41c1a 100644 --- a/drivers/iio/imu/adis.c +++ b/drivers/iio/imu/adis.c @@ -238,6 +238,9 @@ int adis_enable_irq(struct adis *adis, bool enable) int ret = 0; uint16_t msc; + if (adis->data->enable_irq) + return adis->data->enable_irq(adis, enable); + ret = adis_read_reg_16(adis, adis->data->msc_ctrl_reg, &msc); if (ret) goto error_ret; |