diff options
author | Barry Song <Barry.Song@analog.com> | 2010-05-04 13:43:14 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 18:36:06 (GMT) |
commit | 1e3864e63576e33dd1b26ab750ffaab3066aaba9 (patch) | |
tree | f217b0c5480d176c8477073b7c67608b22e1c2a4 /drivers/staging/iio/gyro/gyro.h | |
parent | 9d8ae6c884ef855c4cb0e423caa993e73b29ef67 (diff) | |
download | linux-fsl-qoriq-1e3864e63576e33dd1b26ab750ffaab3066aaba9.tar.xz |
staging:iio:imu ADIS16300 driver
Signed-off-by: Barry Song <Barry.Song@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
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 | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/drivers/staging/iio/gyro/gyro.h b/drivers/staging/iio/gyro/gyro.h new file mode 100644 index 0000000..7c4dcf2 --- /dev/null +++ b/drivers/staging/iio/gyro/gyro.h @@ -0,0 +1,76 @@ + +#include "../sysfs.h" + +/* Gyroscope types of attribute */ + +#define IIO_DEV_ATTR_GYRO_OFFSET(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(gyro_offset, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_GYRO_X_OFFSET(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(gyro_x_offset, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_GYRO_Y_OFFSET(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(gyro_y_offset, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_GYRO_Z_OFFSET(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(gyro_z_offset, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_GYRO_X_GAIN(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(gyro_x_gain, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_GYRO_Y_GAIN(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(gyro_y_gain, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_GYRO_Z_GAIN(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(gyro_z_gain, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_GYRO_SCALE(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(gyro_scale, S_IRUGO, _show, _store, _addr) + +#define IIO_DEV_ATTR_GYRO(_show, _addr) \ + IIO_DEVICE_ATTR(gyro, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_GYRO_X(_show, _addr) \ + IIO_DEVICE_ATTR(gyro_x, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_GYRO_Y(_show, _addr) \ + IIO_DEVICE_ATTR(gyro_y, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_GYRO_Z(_show, _addr) \ + IIO_DEVICE_ATTR(gyro_z, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_TEMP_X(_show, _addr) \ + IIO_DEVICE_ATTR(temp_x, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_TEMP_Y(_show, _addr) \ + IIO_DEVICE_ATTR(temp_y, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_TEMP_Z(_show, _addr) \ + IIO_DEVICE_ATTR(temp_z, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_INCLI_X(_show, _addr) \ + IIO_DEVICE_ATTR(incli_x, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_INCLI_Y(_show, _addr) \ + IIO_DEVICE_ATTR(incli_y, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_INCLI_Z(_show, _addr) \ + IIO_DEVICE_ATTR(incli_z, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_INCLI_X_OFFSET(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(incli_x_offset, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_INCLI_Y_OFFSET(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(incli_y_offset, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_INCLI_Z_OFFSET(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(incli_z_offset, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_ROT(_show, _addr) \ + IIO_DEVICE_ATTR(rot, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_ROT_OFFSET(_mode, _show, _store, _addr) \ + IIO_DEVICE_ATTR(rot_offset, _mode, _show, _store, _addr) + +#define IIO_DEV_ATTR_ANGL(_show, _addr) \ + IIO_DEVICE_ATTR(angl, S_IRUGO, _show, NULL, _addr) |