Skip to contentSkip to conversation

IIO driver for Analog Devices Digital Output Gyroscope ADXRS450

PATCH In review [email protected] 3 participants 4 messages Mar 25, 2011 – Apr 5, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 IIO driver for Analog Devices Digital Output Gyroscope ADXRS450

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

Signature · 1 line
1.7.1
#1 lore raw

PATCH 2/2 Add ABI document for gyro quadrature correction

From: Cliff Cai <[email protected]>

Add ABI document 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..824a56c 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:	[email protected]
+Description:
+		This attribute is used to read the amount of quadrature error
+		present in the device at a given time.
Signature · 1 line
1.7.1
#2 lore raw

Re: [PATCH 1/2] staging: IIO driver for Analog Devices Digital Output Gyroscope ADXRS450

In reply to [email protected]
Quoted 6 lines · On Fri, Mar 25, 2011 at 12:05:57PM +0800, [email protected] wrote:

From: Cliff Cai <[email protected]>
=20
Add new IIO driver for Analog Devices digital output gyroscope ADXRS450 =20

This breaks the build:
CC [M] drivers/staging/iio/gyro/adxrs450_core.o
drivers/staging/iio/gyro/adxrs450_core.c:329:70: error: expected =E2=80=98= )=E2=80=99 before numeric constant drivers/staging/iio/gyro/adxrs450_core.c:337:3: error: =E2=80=98iio_dev_a= ttr_gyro_z_quadrature_correction_raw=E2=80=99 undeclared here (not in a f= unction)
drivers/staging/iio/gyro/adxrs450_core.c:216:16: warning: =E2=80=98adxrs4= 50_read_quad=E2=80=99 defined but not used

Please test your patches before you send them out, it wastes everyone's time when you don't :(

thanks,

greg k-h

#3 lore raw

Re: [PATCH 1/2] staging: IIO driver for Analog Devices Digital Output Gyroscope ADXRS450

Quoted 4 lines · Greg KH
Quoted 3 lines · On Fri, Mar 25, 2011 at 12:05:57PM +0800, [email protected] wrote:

From: Cliff Cai <[email protected]>

Add new IIO driver for Analog Devices digital output gyroscope ADXRS=

450

Quoted 7 lines
Quoted 3 lines

=20
This breaks the build:
CC [M] drivers/staging/iio/gyro/adxrs450_core.o
drivers/staging/iio/gyro/adxrs450_core.c:329:70: error: expected =E2=80=

=98)=E2=80=99 before numeric constant

Quoted 1 line

drivers/staging/iio/gyro/adxrs450_core.c:337:3: error: =E2=80=98iio_d=

ev_attr_gyro_z_quadrature_correction_raw=E2=80=99 undeclared here (not = in a function)

Quoted 1 line

drivers/staging/iio/gyro/adxrs450_core.c:216:16: warning: =E2=80=98ad=

xrs450_read_quad=E2=80=99 defined but not used

Quoted 2 lines

=20
Please test your patches before you send them out, it wastes everyone=

's

Quoted 1 line

time when you don't :(

=46irst patch seems to have dropped off the start of this series.

The review version had:

[PATCH 1/3] Add MACRO for gyro quadrature correction

Guessing a typo in git command post adding acks
is the culprit here!