From: Michael Hennerich Date: Wed, 6 Apr 2011 09:42:47 +0000 (+0200) Subject: IIO: GYRO: Add MACRO for gyro quadrature correction X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=860a4e9d9f95f6fa1cbfdf3953863997121a07f9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git IIO: GYRO: Add MACRO for gyro quadrature correction From: Cliff Cai Add gyro_z_quadrature_correction_raw define. Signed-off-by: Cliff Cai Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/gyro/gyro.h b/drivers/staging/iio/gyro/gyro.h index b4ea5bf161ff..b5495613407b 100644 --- a/drivers/staging/iio/gyro/gyro.h +++ b/drivers/staging/iio/gyro/gyro.h @@ -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)