IIO: core: Add quaternion modifier
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 28 Apr 2014 23:51:00 +0000 (00:51 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 29 Apr 2014 21:09:14 +0000 (22:09 +0100)
Added quaternion in the list of supported modifiers.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-core.c
include/linux/iio/types.h

index 59540859bfae6baeb23b8e04b91c854c4b8c0cf8..de8b1c2ed4b4015062717c12bae73d2f56e700dc 100644 (file)
@@ -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 */
index a13c2241abce5f5711d233abab606d0fee43d0f9..4fdab2e843b4e376fb6481e9f29b60759ee35da0 100644 (file)
@@ -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 {