Skip to contentSkip to conversation

IIO-work: iio.h: add missing address in IIO_CHAN

PATCH In review [email protected] 2 participants 4 messages May 11, 2011

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

PATCH 1/2 IIO-work: iio.h: add missing address in IIO_CHAN

From: Michael Hennerich <[email protected]>

add missing address in IIO_CHAN

---
 drivers/staging/iio/iio.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/iio.h +1 -0
index 92609ee..d9f2692 100644
@@ -136,6 +136,7 @@ int __iio_device_attr_init(struct device_attribute *dev_attr,
 	  .extend_name = _name,						\
 	  .channel = _chan,						\
 	  .channel2 = _chan2,						\
+	  .address = _address,						\
 	  .info_mask = _inf_mask,					\
 	  .scan_index = _si,						\
 	  .scan_type = _stype,						\
Signature · 1 line
1.6.0.2
#1 lore raw

PATCH 2/2 IIO-work: Add channel types IIO_CURRENT and IIO_POWER

From: Michael Hennerich <[email protected]>

Add channel types IIO_CURRENT and IIO_POWER.
This is required for the ADE7758 driver cleanup.

---
 drivers/staging/iio/iio.h               |    2 ++
 drivers/staging/iio/industrialio-core.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
drivers/staging/iio/iio.h +2 -0
index d9f2692..80a81d4 100644
@@ -30,6 +30,8 @@
 enum iio_chan_type {
 	/* real channel types */
 	IIO_IN,
+	IIO_CURRENT,
+	IIO_POWER,
 	IIO_ACCEL,
 	IIO_IN_DIFF,
 	IIO_GYRO,
drivers/staging/iio/industrialio-core.c +2 -0
index faa34af..9218fee 100644
@@ -47,6 +47,8 @@ static const char * const iio_chan_type_name_spec_shared[] = {
 	[IIO_TIMESTAMP] = "timestamp",
 	[IIO_ACCEL] = "accel",
 	[IIO_IN] = "in",
+	[IIO_CURRENT] = "current",
+	[IIO_POWER] = "power",
 	[IIO_IN_DIFF] = "in-in",
 	[IIO_GYRO] = "gyro",
 	[IIO_TEMP] = "temp",
Signature · 1 line
1.6.0.2
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] IIO-work: Add channel types IIO_CURRENT and IIO_POWER

Quoted 4 lines · On 05/11/11 12:58, [email protected] wrote:

From: Michael Hennerich <[email protected]>

Add channel types IIO_CURRENT and IIO_POWER.
This is required for the ADE7758 driver cleanup.

Will slot this one in right before the ade7758 patches.

Quoted 2 lines
Quoted 31 lines
---
 drivers/staging/iio/iio.h               |    2 ++
 drivers/staging/iio/industrialio-core.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
drivers/staging/iio/iio.h +2 -0
index d9f2692..80a81d4 100644
@@ -30,6 +30,8 @@
 enum iio_chan_type {
 	/* real channel types */
 	IIO_IN,
+	IIO_CURRENT,
+	IIO_POWER,
 	IIO_ACCEL,
 	IIO_IN_DIFF,
 	IIO_GYRO,
drivers/staging/iio/industrialio-core.c +2 -0
index faa34af..9218fee 100644
@@ -47,6 +47,8 @@ static const char * const iio_chan_type_name_spec_shared[] = {
 	[IIO_TIMESTAMP] = "timestamp",
 	[IIO_ACCEL] = "accel",
 	[IIO_IN] = "in",
+	[IIO_CURRENT] = "current",
+	[IIO_POWER] = "power",
 	[IIO_IN_DIFF] = "in-in",
 	[IIO_GYRO] = "gyro",
 	[IIO_TEMP] = "temp",
#3 lore raw
In reply to [email protected]
Quoted 3 lines · On 05/11/11 12:58, [email protected] wrote:

From: Michael Hennerich <[email protected]>

add missing address in IIO_CHAN

Yikes.

Thanks - will merge into the original patch.

Quoted 18 lines
---
 drivers/staging/iio/iio.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/iio.h +1 -0
index 92609ee..d9f2692 100644
@@ -136,6 +136,7 @@ int __iio_device_attr_init(struct device_attribute *dev_attr,
 	  .extend_name = _name,						\
 	  .channel = _chan,						\
 	  .channel2 = _chan2,						\
+	  .address = _address,						\
 	  .info_mask = _inf_mask,					\
 	  .scan_index = _si,						\
 	  .scan_type = _stype,						\