iio: types: Added support for rotation from north usage attributes
authorReyad Attiyat <reyad.attiyat@gmail.com>
Thu, 17 Jul 2014 18:18:00 +0000 (19:18 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 20 Jul 2014 12:34:45 +0000 (13:34 +0100)
Added the rotation from north usage attributes to the iio modifier enum and to the iio modifier names array.

Signed-off-by: Reyad Attiyat <reyad.attiyat@gmail.com>
Acked-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 4b1f375c5659d0e11330d8eba6da959a398fa4d5..af3e76d652ba0a51f9fdd777079edf9c30304b99 100644 (file)
@@ -87,6 +87,10 @@ static const char * const iio_modifier_names[] = {
        [IIO_MOD_QUATERNION] = "quaternion",
        [IIO_MOD_TEMP_AMBIENT] = "ambient",
        [IIO_MOD_TEMP_OBJECT] = "object",
+       [IIO_MOD_NORTH_MAGN] = "from_north_magnetic",
+       [IIO_MOD_NORTH_TRUE] = "from_north_true",
+       [IIO_MOD_NORTH_MAGN_TILT_COMP] = "from_north_magnetic_tilt_comp",
+       [IIO_MOD_NORTH_TRUE_TILT_COMP] = "from_north_true_tilt_comp",
 };
 
 /* relies on pairs of these shared then separate */
index 4a848d6be3bf73b8521059cbd71b43a9a3deba95..4a2af8adf874619a9d9badf066a4dda6d1ddee16 100644 (file)
@@ -56,6 +56,10 @@ enum iio_modifier {
        IIO_MOD_QUATERNION,
        IIO_MOD_TEMP_AMBIENT,
        IIO_MOD_TEMP_OBJECT,
+       IIO_MOD_NORTH_MAGN,
+       IIO_MOD_NORTH_TRUE,
+       IIO_MOD_NORTH_MAGN_TILT_COMP,
+       IIO_MOD_NORTH_TRUE_TILT_COMP
 };
 
 enum iio_event_type {
This page took 0.033191 seconds and 5 git commands to generate.