Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932408Ab1CWKOP (ORCPT ); Wed, 23 Mar 2011 06:14:15 -0400 Received: from nwd2mail10.analog.com ([137.71.25.55]:56403 "EHLO nwd2mail10.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932210Ab1CWKON (ORCPT ); Wed, 23 Mar 2011 06:14:13 -0400 X-IronPort-AV: E=Sophos;i="4.63,230,1299474000"; d="scan'208";a="31143243" From: To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org CC: drivers@analog.com, jic23@cam.ac.uk, device-drivers-devel@blackfin.uclinux.org, Cliff Cai Subject: [PATCH 1/3] Add MACRO for gyro quadrature correction Date: Wed, 23 Mar 2011 17:15:25 +0800 Message-ID: <1300871727-32239-1-git-send-email-cliff.cai@analog.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1087 Lines: 31 From: Cliff Cai Add gyro_z_quadrature_correction_raw define. Signed-off-by: Cliff Cai --- drivers/staging/iio/gyro/gyro.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/staging/iio/gyro/gyro.h b/drivers/staging/iio/gyro/gyro.h index b4ea5bf..b549561 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) -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/