diff options
| author | Basavaraj Natikar <Basavaraj.Natikar@amd.com> | 2023-09-19 13:40:51 +0530 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-09-24 13:31:31 +0100 |
| commit | 06790d4c69d1851573baa4459e5bf6ac986cb0eb (patch) | |
| tree | 51e8d84c976ae0d3c50c7d1a3849c9a2a2aa159a /drivers/iio | |
| parent | 82cdcdf227f3965cce3ac94bc2e473e9c898f402 (diff) | |
| download | linux-06790d4c69d1851573baa4459e5bf6ac986cb0eb.tar.gz linux-06790d4c69d1851573baa4459e5bf6ac986cb0eb.tar.bz2 linux-06790d4c69d1851573baa4459e5bf6ac986cb0eb.zip | |
iio: Add channel type for chromaticity
In most cases, ambient color sensors also support the x and y light
colors, which represent the coordinates on the CIE 1931 chromaticity
diagram. Thus, add channel type for chromaticity.
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Link: https://lore.kernel.org/r/20230919081054.2050714-7-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index cba942cadf97..6dc4d2b296bb 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c @@ -91,6 +91,7 @@ static const char * const iio_chan_type_name_spec[] = { [IIO_PHASE] = "phase", [IIO_MASSCONCENTRATION] = "massconcentration", [IIO_COLORTEMP] = "colortemp", + [IIO_CHROMATICITY] = "chromaticity", }; static const char * const iio_modifier_names[] = { |
