Re: [RFC PATCH 1/2] iio: core: add xyz modifier value

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

 



On 27/06/14 01:40, Srinivas Pandruvada wrote:
iio types defines a modifier called IIO_MOD_X_AND_Y_AND_Z, but since
no modifier name is specified, it shows (null) as channel name.
Here name is assiged a value "xyz".
Hmm. The purpose of this particularly modifier was for boolean combinations
of events.  There are devices out there that will only fire an interrupt
if say they detect changes in acceleration in all 3 directions...

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>
---
  drivers/iio/industrialio-core.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 4b1f375..e8428bb 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -87,6 +87,7 @@ static const char * const iio_modifier_names[] = {
  	[IIO_MOD_QUATERNION] = "quaternion",
  	[IIO_MOD_TEMP_AMBIENT] = "ambient",
  	[IIO_MOD_TEMP_OBJECT] = "object",
+	[IIO_MOD_X_AND_Y_AND_Z] = "xyz",
  };

  /* relies on pairs of these shared then separate */


--
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