public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch v2 1/3] IIO: core: Add quaternion modifier
@ 2014-04-04 21:30 Srinivas Pandruvada
  2014-04-04 21:30 ` [Patch v2 2/3] IIO: core: Modify scan element type Srinivas Pandruvada
  2014-04-04 21:30 ` [Patch v2 3/3] iio: hid-sensors: Added device rotation support Srinivas Pandruvada
  0 siblings, 2 replies; 5+ messages in thread
From: Srinivas Pandruvada @ 2014-04-04 21:30 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, Srinivas Pandruvada

Added quaternion in the list of supported modifiers.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 drivers/iio/industrialio-core.c | 1 +
 include/linux/iio/types.h       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index acc911a..27bb9ca 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -84,6 +84,7 @@ static const char * const iio_modifier_names[] = {
 	[IIO_MOD_LIGHT_RED] = "red",
 	[IIO_MOD_LIGHT_GREEN] = "green",
 	[IIO_MOD_LIGHT_BLUE] = "blue",
+	[IIO_MOD_QUATERNION] = "quaternion",
 };
 
 /* relies on pairs of these shared then separate */
diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h
index 084d882..e495720 100644
--- a/include/linux/iio/types.h
+++ b/include/linux/iio/types.h
@@ -53,6 +53,7 @@ enum iio_modifier {
 	IIO_MOD_LIGHT_RED,
 	IIO_MOD_LIGHT_GREEN,
 	IIO_MOD_LIGHT_BLUE,
+	IIO_MOD_QUATERNION,
 };
 
 enum iio_event_type {
-- 
1.9.1


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

end of thread, other threads:[~2014-04-05 10:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04 21:30 [Patch v2 1/3] IIO: core: Add quaternion modifier Srinivas Pandruvada
2014-04-04 21:30 ` [Patch v2 2/3] IIO: core: Modify scan element type Srinivas Pandruvada
2014-04-05 10:15   ` Jonathan Cameron
2014-04-04 21:30 ` [Patch v2 3/3] iio: hid-sensors: Added device rotation support Srinivas Pandruvada
2014-04-05 10:25   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox