summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>2023-09-19 13:40:47 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-09-24 13:22:52 +0100
commit42f311751102ef4884ae7352d7e85bd97280d2d3 (patch)
tree0b74b71eaec446a1a694f639027e845f6de114c9 /drivers/iio
parent286d528bf0fae9f334fba857825b9701df1675b2 (diff)
downloadlinux-42f311751102ef4884ae7352d7e85bd97280d2d3.tar.gz
linux-42f311751102ef4884ae7352d7e85bd97280d2d3.tar.bz2
linux-42f311751102ef4884ae7352d7e85bd97280d2d3.zip
iio: Add channel type light color temperature
In most cases, ambient color sensors also support light color temperature, which is measured in kelvin. Thus, add channel type light color temperature. Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Link: https://lore.kernel.org/r/20230919081054.2050714-3-Basavaraj.Natikar@amd.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/industrialio-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index d752e9c0499b..cba942cadf97 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -90,6 +90,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_POSITIONRELATIVE] = "positionrelative",
[IIO_PHASE] = "phase",
[IIO_MASSCONCENTRATION] = "massconcentration",
+ [IIO_COLORTEMP] = "colortemp",
};
static const char * const iio_modifier_names[] = {