Commit c0e4e0fd authored by Maxime Roussin-Bélanger's avatar Maxime Roussin-Bélanger Committed by Jonathan Cameron

iio: Add modifier for DUV light

Signed-off-by: default avatarMaxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 1c287992
...@@ -1307,13 +1307,16 @@ What: /sys/.../iio:deviceX/in_intensityY_raw ...@@ -1307,13 +1307,16 @@ What: /sys/.../iio:deviceX/in_intensityY_raw
What: /sys/.../iio:deviceX/in_intensityY_ir_raw What: /sys/.../iio:deviceX/in_intensityY_ir_raw
What: /sys/.../iio:deviceX/in_intensityY_both_raw What: /sys/.../iio:deviceX/in_intensityY_both_raw
What: /sys/.../iio:deviceX/in_intensityY_uv_raw What: /sys/.../iio:deviceX/in_intensityY_uv_raw
What: /sys/.../iio:deviceX/in_intensityY_duv_raw
KernelVersion: 3.4 KernelVersion: 3.4
Contact: linux-iio@vger.kernel.org Contact: linux-iio@vger.kernel.org
Description: Description:
Unit-less light intensity. Modifiers both and ir indicate Unit-less light intensity. Modifiers both and ir indicate
that measurements contain visible and infrared light that measurements contain visible and infrared light
components or just infrared light, respectively. Modifier uv indicates components or just infrared light, respectively. Modifier
that measurements contain ultraviolet light components. uv indicates that measurements contain ultraviolet light
components. Modifier duv indicates that measurements
contain deep ultraviolet light components.
What: /sys/.../iio:deviceX/in_uvindex_input What: /sys/.../iio:deviceX/in_uvindex_input
KernelVersion: 4.6 KernelVersion: 4.6
......
...@@ -110,6 +110,7 @@ static const char * const iio_modifier_names[] = { ...@@ -110,6 +110,7 @@ static const char * const iio_modifier_names[] = {
[IIO_MOD_LIGHT_GREEN] = "green", [IIO_MOD_LIGHT_GREEN] = "green",
[IIO_MOD_LIGHT_BLUE] = "blue", [IIO_MOD_LIGHT_BLUE] = "blue",
[IIO_MOD_LIGHT_UV] = "uv", [IIO_MOD_LIGHT_UV] = "uv",
[IIO_MOD_LIGHT_DUV] = "duv",
[IIO_MOD_QUATERNION] = "quaternion", [IIO_MOD_QUATERNION] = "quaternion",
[IIO_MOD_TEMP_AMBIENT] = "ambient", [IIO_MOD_TEMP_AMBIENT] = "ambient",
[IIO_MOD_TEMP_OBJECT] = "object", [IIO_MOD_TEMP_OBJECT] = "object",
......
...@@ -86,6 +86,7 @@ enum iio_modifier { ...@@ -86,6 +86,7 @@ enum iio_modifier {
IIO_MOD_CO2, IIO_MOD_CO2,
IIO_MOD_VOC, IIO_MOD_VOC,
IIO_MOD_LIGHT_UV, IIO_MOD_LIGHT_UV,
IIO_MOD_LIGHT_DUV,
}; };
enum iio_event_type { enum iio_event_type {
......
...@@ -98,6 +98,7 @@ static const char * const iio_modifier_names[] = { ...@@ -98,6 +98,7 @@ static const char * const iio_modifier_names[] = {
[IIO_MOD_LIGHT_GREEN] = "green", [IIO_MOD_LIGHT_GREEN] = "green",
[IIO_MOD_LIGHT_BLUE] = "blue", [IIO_MOD_LIGHT_BLUE] = "blue",
[IIO_MOD_LIGHT_UV] = "uv", [IIO_MOD_LIGHT_UV] = "uv",
[IIO_MOD_LIGHT_DUV] = "duv",
[IIO_MOD_QUATERNION] = "quaternion", [IIO_MOD_QUATERNION] = "quaternion",
[IIO_MOD_TEMP_AMBIENT] = "ambient", [IIO_MOD_TEMP_AMBIENT] = "ambient",
[IIO_MOD_TEMP_OBJECT] = "object", [IIO_MOD_TEMP_OBJECT] = "object",
...@@ -182,6 +183,7 @@ static bool event_is_known(struct iio_event_data *event) ...@@ -182,6 +183,7 @@ static bool event_is_known(struct iio_event_data *event)
case IIO_MOD_LIGHT_GREEN: case IIO_MOD_LIGHT_GREEN:
case IIO_MOD_LIGHT_BLUE: case IIO_MOD_LIGHT_BLUE:
case IIO_MOD_LIGHT_UV: case IIO_MOD_LIGHT_UV:
case IIO_MOD_LIGHT_DUV:
case IIO_MOD_QUATERNION: case IIO_MOD_QUATERNION:
case IIO_MOD_TEMP_AMBIENT: case IIO_MOD_TEMP_AMBIENT:
case IIO_MOD_TEMP_OBJECT: case IIO_MOD_TEMP_OBJECT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment