aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-core.c
diff options
context:
space:
mode:
authorJon Brenner <jbrenner@taosinc.com>2012-05-16 11:46:42 -0400
committerJonathan Cameron <jic23@kernel.org>2012-07-10 13:49:26 -0400
commit21cd1fab058671313f7c178b640999fcd0d8de21 (patch)
tree914b425f6979bb712d29bffd85cc8b28c8eb0624 /drivers/iio/industrialio-core.c
parentee0312a05ddceb0fc871f39b8f56b4cabc5176aa (diff)
IIO channel type and modifiers for CCT and RGBC data
Add iio channel type and modifiers for Correlated Color Temperature (CCT) and RGBC (red/green/blue/clear) data. Add CCT and RGBC descriptions to documentation. Changes: Revised/condensed RGBC descriptions. Merge and trivial fix done by Jonathan Cameron. Signed-off-by: Jon Brenner <jbrenner@taosinc.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
-rw-r--r--drivers/iio/industrialio-core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index bb3c692e49b..2ec266ef41a 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -64,6 +64,7 @@ static const char * const iio_chan_type_name_spec[] = {
64 [IIO_TIMESTAMP] = "timestamp", 64 [IIO_TIMESTAMP] = "timestamp",
65 [IIO_CAPACITANCE] = "capacitance", 65 [IIO_CAPACITANCE] = "capacitance",
66 [IIO_ALTVOLTAGE] = "altvoltage", 66 [IIO_ALTVOLTAGE] = "altvoltage",
67 [IIO_CCT] = "cct",
67}; 68};
68 69
69static const char * const iio_modifier_names[] = { 70static const char * const iio_modifier_names[] = {
@@ -74,6 +75,10 @@ static const char * const iio_modifier_names[] = {
74 [IIO_MOD_SUM_SQUARED_X_Y_Z] = "x^2+y^2+z^2", 75 [IIO_MOD_SUM_SQUARED_X_Y_Z] = "x^2+y^2+z^2",
75 [IIO_MOD_LIGHT_BOTH] = "both", 76 [IIO_MOD_LIGHT_BOTH] = "both",
76 [IIO_MOD_LIGHT_IR] = "ir", 77 [IIO_MOD_LIGHT_IR] = "ir",
78 [IIO_MOD_LIGHT_CLEAR] = "clear",
79 [IIO_MOD_LIGHT_RED] = "red",
80 [IIO_MOD_LIGHT_GREEN] = "green",
81 [IIO_MOD_LIGHT_BLUE] = "blue",
77}; 82};
78 83
79/* relies on pairs of these shared then separate */ 84/* relies on pairs of these shared then separate */