IIO: GYRO: Add MACRO for gyro quadrature correction
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 6 Apr 2011 09:42:47 +0000 (11:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Apr 2011 21:20:45 +0000 (14:20 -0700)
From: Cliff Cai <cliff.cai@analog.com>

Add gyro_z_quadrature_correction_raw define.

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/gyro/gyro.h

index b4ea5bf161ff021efbe0dac37e5288706b2ce926..b5495613407b06fc1532f317d39b2fb7db635bb8 100644 (file)
@@ -57,6 +57,9 @@
 #define IIO_DEV_ATTR_GYRO_Z_CALIBSCALE(_mode, _show, _store, _addr)            \
        IIO_DEVICE_ATTR(gyro_z_calibscale, _mode, _show, _store, _addr)
 
+#define IIO_DEV_ATTR_GYRO_Z_QUADRATURE_CORRECTION(_show, _addr)                \
+       IIO_DEVICE_ATTR(gyro_z_quadrature_correction_raw, S_IRUGO, _show, NULL, _addr)
+
 #define IIO_DEV_ATTR_GYRO(_show, _addr)                        \
        IIO_DEVICE_ATTR(gyro_raw, S_IRUGO, _show, NULL, _addr)