提交 860a4e9d 编写于 作者: M Michael Hennerich 提交者: Greg Kroah-Hartman

IIO: GYRO: Add MACRO for gyro quadrature correction

From: Cliff Cai <cliff.cai@analog.com>

Add gyro_z_quadrature_correction_raw define.
Signed-off-by: NCliff Cai <cliff.cai@analog.com>
Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 7aead6d7
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
#define IIO_DEV_ATTR_GYRO_Z_CALIBSCALE(_mode, _show, _store, _addr) \ #define IIO_DEV_ATTR_GYRO_Z_CALIBSCALE(_mode, _show, _store, _addr) \
IIO_DEVICE_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) \ #define IIO_DEV_ATTR_GYRO(_show, _addr) \
IIO_DEVICE_ATTR(gyro_raw, S_IRUGO, _show, NULL, _addr) IIO_DEVICE_ATTR(gyro_raw, S_IRUGO, _show, NULL, _addr)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册