[PATCH 62/70] staging:iio: Add angl parameters to the chan spec code.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxx>
---
 drivers/staging/iio/iio.h               |    1 +
 drivers/staging/iio/industrialio-core.c |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/iio/iio.h b/drivers/staging/iio/iio.h
index 4946006..0bba445 100644
--- a/drivers/staging/iio/iio.h
+++ b/drivers/staging/iio/iio.h
@@ -45,6 +45,7 @@ enum iio_chan_type {
 	IIO_TEMP,
 	IIO_INCLI,
 	IIO_ROT,
+	IIO_ANGL,
 	IIO_TIMESTAMP,
 };
 
diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c
index 79145df..3f7df85 100644
--- a/drivers/staging/iio/industrialio-core.c
+++ b/drivers/staging/iio/industrialio-core.c
@@ -54,6 +54,7 @@ static const char * const iio_chan_type_name_spec_shared[] = {
 	[IIO_MAGN] = "magn",
 	[IIO_INCLI] = "incli",
 	[IIO_ROT] = "rot",
+	[IIO_ANGL] = "angl",
 };
 
 static const char * const iio_chan_type_name_spec[] = {
@@ -66,6 +67,7 @@ static const char * const iio_chan_type_name_spec[] = {
 	[IIO_MAGN] = "magn_%c",
 	[IIO_INCLI] = "incli_%c",
 	[IIO_ROT] = "rot_%c",
+	[IIO_ANGL] = "angl_%c",
 };
 
 /* relies on pairs of these shared then separate */
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux