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/gyro.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/gyro.h')
-rw-r--r-- | drivers/staging/iio/gyro/gyro.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/iio/gyro/gyro.h b/drivers/staging/iio/gyro/gyro.h index 98b837b..b4ea5bf 100644 --- a/drivers/staging/iio/gyro/gyro.h +++ b/drivers/staging/iio/gyro/gyro.h @@ -71,3 +71,12 @@ #define IIO_DEV_ATTR_ANGL(_show, _addr) \ IIO_DEVICE_ATTR(angl_raw, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ANGL_X(_show, _addr) \ + IIO_DEVICE_ATTR(angl_x_raw, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ANGL_Y(_show, _addr) \ + IIO_DEVICE_ATTR(angl_y_raw, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ANGL_Z(_show, _addr) \ + IIO_DEVICE_ATTR(angl_z_raw, S_IRUGO, _show, NULL, _addr) |