diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2010-05-07 14:38:55 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 21:33:24 (GMT) |
commit | a1169c5a0bfec75730a080a5f5d668e65144d1d1 (patch) | |
tree | d85f47c2849fab0287df2f16167a6060470e410e /drivers/staging/iio/gyro/gyro.h | |
parent | 85798ec85ec6146bff3af886c06d72cc66940a05 (diff) | |
download | linux-fsl-qoriq-a1169c5a0bfec75730a080a5f5d668e65144d1d1.tar.xz |
staging: iio: Break up gyro.h and move to new abi
Signed-off-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 | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/drivers/staging/iio/gyro/gyro.h b/drivers/staging/iio/gyro/gyro.h index 7c4dcf2..16f6ffa 100644 --- a/drivers/staging/iio/gyro/gyro.h +++ b/drivers/staging/iio/gyro/gyro.h @@ -28,49 +28,14 @@ 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) + IIO_DEVICE_ATTR(gyro_raw, S_IRUGO, _show, NULL, _addr) #define IIO_DEV_ATTR_GYRO_X(_show, _addr) \ - IIO_DEVICE_ATTR(gyro_x, S_IRUGO, _show, NULL, _addr) + IIO_DEVICE_ATTR(gyro_x_raw, S_IRUGO, _show, NULL, _addr) #define IIO_DEV_ATTR_GYRO_Y(_show, _addr) \ - IIO_DEVICE_ATTR(gyro_y, S_IRUGO, _show, NULL, _addr) + IIO_DEVICE_ATTR(gyro_y_raw, S_IRUGO, _show, NULL, _addr) #define IIO_DEV_ATTR_GYRO_Z(_show, _addr) \ - IIO_DEVICE_ATTR(gyro_z, S_IRUGO, _show, NULL, _addr) + IIO_DEVICE_ATTR(gyro_z_raw, 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) |