Skip to contentSkip to conversation

IIO: GYRO: Add MACRO for gyro quadrature correction

PATCH New [email protected] 1 participant 3 messages Apr 6, 2011

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/3 IIO: GYRO: Add MACRO for gyro quadrature correction

From: Michael Hennerich <[email protected]>

From: Cliff Cai <[email protected]>

Add gyro_z_quadrature_correction_raw define.

---
 drivers/staging/iio/gyro/gyro.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/staging/iio/gyro/gyro.h +3 -0
index b4ea5bf..b549561 100644
@@ -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.6.0.2

author maintainer
#1 lore raw

PATCH 2/3 IIO: Documentation: Add ABI documentatio for gyro quadrature correction

From: Michael Hennerich <[email protected]>

From: Cliff Cai <[email protected]>

Add ABI documentation for gyro quadrature correction.

---
 drivers/staging/iio/Documentation/sysfs-bus-iio |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/staging/iio/Documentation/sysfs-bus-iio +7 -0
index 4915aee..49047ad 100644
@@ -698,3 +698,10 @@ Description:
 		with all _en attributes to establish which channels are present,
 		and the relevant _type attributes to establish the data storage
 		format.
+
+What:		/sys/bus/iio/devices/deviceX/gyro_z_quadrature_correction_raw
+KernelVersion:	2.6.38
+Contact:	linux-iio@xxxxxxxxxxxxxxx
+Description:
+		This attribute is used to read the amount of quadrature error
+		present in the device at a given time.

--
1.6.0.2

author maintainer
#2 lore raw

PATCH 3/3 IIO: GYRO: IIO driver for Analog Devices Digital Output Gyroscope ADXRS450

In reply to [email protected]

From: Michael Hennerich <[email protected]>

From: Cliff Cai <[email protected]>

Add new IIO driver for Analog Devices digital output gyroscope ADXRS450

---
 drivers/staging/iio/gyro/Kconfig         |   10 +
 drivers/staging/iio/gyro/Makefile        |    3 +
 drivers/staging/iio/gyro/adxrs450.h      |   58 ++++
 drivers/staging/iio/gyro/adxrs450_core.c |  446 ++++++++++++++++++++++++++++++
 4 files changed, 517 insertions(+), 0 deletions(-)
 create mode 100644 drivers/staging/iio/gyro/adxrs450.h
 create mode 100644 drivers/staging/iio/gyro/adxrs450_core.c
drivers/staging/iio/gyro/Kconfig +10 -0
index 8b78fa0..ae2e7d3 100644
@@ -35,3 +35,13 @@ config ADIS16260
 
 	  This driver can also be built as a module.  If so, the module
 	  will be called adis16260.
+
+config ADXRS450
+	tristate "Analog Devices ADXRS450 Digital Output Gyroscope SPI driver"
+	depends on SPI
+	help
+	  Say yes here to build support for Analog Devices ADXRS450 programmable
+	  digital output gyroscope.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called adxrs450.
drivers/staging/iio/gyro/Makefile +3 -0
index 2764c15..2212240 100644
@@ -17,3 +17,6 @@ obj-$(CONFIG_ADIS16260) += adis16260.o
 
 adis16251-y             := adis16251_core.o
 obj-$(CONFIG_ADIS16251) += adis16251.o
+
+adxrs450-y             := adxrs450_core.o
+obj-$(CONFIG_ADXRS450) += adxrs450.o
drivers/staging/iio/gyro/adxrs450.h new file +58 -0

58 lines not on this page · raw message

drivers/staging/iio/gyro/adxrs450_core.c new file +446 -0

446 lines not on this page · raw message

--
1.6.0.2