linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 1/2] iio: core: added support for a single output that supports both current and voltage
@ 2016-01-22 12:54 Sean Nyekjaer
  2016-01-22 12:54 ` [RFC 2/2] iio: ad5755: added support for switching between voltage and current output Sean Nyekjaer
       [not found] ` <2C284AAE-21FB-4EFE-AD1C-2F010B15C845@jic23.retrosnub.co.uk>
  0 siblings, 2 replies; 10+ messages in thread
From: Sean Nyekjaer @ 2016-01-22 12:54 UTC (permalink / raw)
  To: linux-iio; +Cc: Sean Nyekjaer

Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
---
 drivers/iio/industrialio-core.c | 2 ++
 include/linux/iio/iio.h         | 1 +
 include/uapi/linux/iio/types.h  | 1 +
 3 files changed, 4 insertions(+)

diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index fd01f34..5e1beea 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -77,6 +77,7 @@ static const char * const iio_chan_type_name_spec[] = {
 	[IIO_VELOCITY] = "velocity",
 	[IIO_CONCENTRATION] = "concentration",
 	[IIO_RESISTANCE] = "resistance",
+	[IIO_DUAL_VOLTCUR] = "voltcur",
 };
 
 static const char * const iio_modifier_names[] = {
@@ -146,6 +147,7 @@ static const char * const iio_chan_info_postfix[] = {
 	[IIO_CHAN_INFO_DEBOUNCE_TIME] = "debounce_time",
 	[IIO_CHAN_INFO_CALIBEMISSIVITY] = "calibemissivity",
 	[IIO_CHAN_INFO_OVERSAMPLING_RATIO] = "oversampling_ratio",
+	[IIO_CHAN_INFO_MODE] = "mode",
 };
 
 /**
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index b589411..ef4c7cd9 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -46,6 +46,7 @@ enum iio_chan_info_enum {
 	IIO_CHAN_INFO_DEBOUNCE_TIME,
 	IIO_CHAN_INFO_CALIBEMISSIVITY,
 	IIO_CHAN_INFO_OVERSAMPLING_RATIO,
+	IIO_CHAN_INFO_MODE,
 };
 
 enum iio_shared_by {
diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h
index 7c63bd6..81e6a2a 100644
--- a/include/uapi/linux/iio/types.h
+++ b/include/uapi/linux/iio/types.h
@@ -37,6 +37,7 @@ enum iio_chan_type {
 	IIO_VELOCITY,
 	IIO_CONCENTRATION,
 	IIO_RESISTANCE,
+	IIO_DUAL_VOLTCUR,
 };
 
 enum iio_modifier {
-- 
2.7.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-01-26  6:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 12:54 [RFC 1/2] iio: core: added support for a single output that supports both current and voltage Sean Nyekjaer
2016-01-22 12:54 ` [RFC 2/2] iio: ad5755: added support for switching between voltage and current output Sean Nyekjaer
2016-01-24 15:49   ` Jonathan Cameron
2016-01-25 15:05     ` Sean Nyekjær
2016-01-25 17:17       ` Jonathan Cameron
2016-01-25 16:00   ` Lars-Peter Clausen
2016-01-26  6:15     ` Sean Nyekjær
     [not found] ` <2C284AAE-21FB-4EFE-AD1C-2F010B15C845@jic23.retrosnub.co.uk>
2016-01-22 14:37   ` [RFC 1/2] iio: core: added support for a single output that supports both current and voltage Sean Nyekjær
2016-01-22 16:49     ` Jonathan Cameron
2016-01-24 15:14       ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).