From: <cliff.cai@analog.com>
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 <cliff.cai@analog.com>
Subject: [PATCH 1/3] Add MACRO for gyro quadrature correction
Date: Wed, 23 Mar 2011 17:15:25 +0800 [thread overview]
Message-ID: <1300871727-32239-1-git-send-email-cliff.cai@analog.com> (raw)
From: Cliff Cai <cliff.cai@analog.com>
Add gyro_z_quadrature_correction_raw define.
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
---
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
next reply other threads:[~2011-03-23 10:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-23 9:15 cliff.cai [this message]
2011-03-23 9:15 ` [PATCH 2/3 RESEND v3] IIO driver for Analog Devices Digital Output Gyroscope ADXRS450 cliff.cai
2011-03-23 11:18 ` Jonathan Cameron
2011-03-23 9:15 ` [PATCH 3/3] Add ABI document for gyro quadrature correction cliff.cai
2011-03-23 10:24 ` [Device-drivers-devel] " Hennerich, Michael
2011-03-23 11:20 ` Jonathan Cameron
2011-03-23 11:11 ` [PATCH 1/3] Add MACRO " Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1300871727-32239-1-git-send-email-cliff.cai@analog.com \
--to=cliff.cai@analog.com \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=drivers@analog.com \
--cc=jic23@cam.ac.uk \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®