diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2010-11-22 23:09:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-29 19:04:48 (GMT) |
commit | fe34604844c151668579cb6ad52f75a5c651bed9 (patch) | |
tree | 2d2ffe5cc8b0f617aa1f6dee79b968d9a67d80b7 /drivers/staging/iio/gyro/adis16260.h | |
parent | a9672951a5c4e57e048895d868a2172962ef7ffd (diff) | |
download | linux-fsl-qoriq-fe34604844c151668579cb6ad52f75a5c651bed9.tar.xz |
staging: iio: adis16260 add suppport for adis16255 and adis16250.
Unusual element is addition of 'negate' and 'axis' platform data
to ensure we support all the functionality of the adis16255 driver
currently in staging.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Matthias Brugger <mensch0815@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/gyro/adis16260.h')
-rw-r--r-- | drivers/staging/iio/gyro/adis16260.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/iio/gyro/adis16260.h b/drivers/staging/iio/gyro/adis16260.h index 812440a..c1fd4364 100644 --- a/drivers/staging/iio/gyro/adis16260.h +++ b/drivers/staging/iio/gyro/adis16260.h @@ -1,5 +1,6 @@ #ifndef SPI_ADIS16260_H_ #define SPI_ADIS16260_H_ +#include "adis16260_platform_data.h" #define ADIS16260_STARTUP_DELAY 220 /* ms */ @@ -92,6 +93,7 @@ * @tx: transmit buffer * @rx: recieve buffer * @buf_lock: mutex to protect tx and rx + * @negate: negate the scale parameter **/ struct adis16260_state { struct spi_device *us; @@ -102,6 +104,7 @@ struct adis16260_state { u8 *tx; u8 *rx; struct mutex buf_lock; + unsigned negate:1; }; int adis16260_set_irq(struct device *dev, bool enable); |