projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aead6d
)
IIO: GYRO: Add MACRO for gyro quadrature correction
author
Michael Hennerich
<michael.hennerich@analog.com>
Wed, 6 Apr 2011 09:42:47 +0000
(11:42 +0200)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/gyro/gyro.h
b/drivers/staging/iio/gyro/gyro.h
index
b4ea5bf
..
b549561
100644
(file)
--- 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)