]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iio: Add TEMP_AMBIENT and TEMP_OBJECT channel modifiers
authorPeter Meerwald <pmeerw@pmeerw.net>
Wed, 5 Feb 2014 16:57:00 +0000 (16:57 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 May 2014 10:35:23 +0000 (11:35 +0100)
useful for contactless temperature sensors to distinguish
between the ambient temperature and the temperature of the object

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-core.c
include/linux/iio/types.h

index de8b1c2ed4b4015062717c12bae73d2f56e700dc..4b1f375c5659d0e11330d8eba6da959a398fa4d5 100644 (file)
@@ -85,6 +85,8 @@ static const char * const iio_modifier_names[] = {
        [IIO_MOD_LIGHT_GREEN] = "green",
        [IIO_MOD_LIGHT_BLUE] = "blue",
        [IIO_MOD_QUATERNION] = "quaternion",
+       [IIO_MOD_TEMP_AMBIENT] = "ambient",
+       [IIO_MOD_TEMP_OBJECT] = "object",
 };
 
 /* relies on pairs of these shared then separate */
index 4fdab2e843b4e376fb6481e9f29b60759ee35da0..d480631eabc2a2d946060ddf6a1f76b300a696c9 100644 (file)
@@ -54,6 +54,8 @@ enum iio_modifier {
        IIO_MOD_LIGHT_GREEN,
        IIO_MOD_LIGHT_BLUE,
        IIO_MOD_QUATERNION,
+       IIO_MOD_TEMP_AMBIENT,
+       IIO_MOD_TEMP_OBJECT,
 };
 
 enum iio_event_type {