IIO-work: iio.h: add missing address in IIO_CHAN
Subsystems (3)
PATCH 1/2 IIO-work: iio.h: add missing address in IIO_CHAN
From: Michael Hennerich <[email protected]>
add missing address in IIO_CHAN
Signed-off-by Michael Hennerich <[email protected]>
--- drivers/staging/iio/iio.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/iio.h +1 -0
@@ -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
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.
Signed-off-by Michael Hennerich <[email protected]>
--- 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
@@ -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
@@ -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
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_CURRENTandIIO_POWER.
This is required for the ADE7758 driver cleanup.
Will slot this one in right before the ade7758 patches.
Quoted 2 lines
Signed-off-by Michael Hennerich <[email protected]>
Acked-by Jonathan Cameron <[email protected]>
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@@ -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@@ -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",
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
Signed-off-by Michael Hennerich <[email protected]>--- drivers/staging/iio/iio.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/staging/iio/iio.h +1
-0@@ -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, \