Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: Add modifier for DUV light

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Maxime Roussin-Bélanger and committed by
Jonathan Cameron
c0e4e0fd 1c287992

+9 -2
+5 -2
Documentation/ABI/testing/sysfs-bus-iio
··· 1307 1307 What: /sys/.../iio:deviceX/in_intensityY_ir_raw 1308 1308 What: /sys/.../iio:deviceX/in_intensityY_both_raw 1309 1309 What: /sys/.../iio:deviceX/in_intensityY_uv_raw 1310 + What: /sys/.../iio:deviceX/in_intensityY_duv_raw 1310 1311 KernelVersion: 3.4 1311 1312 Contact: linux-iio@vger.kernel.org 1312 1313 Description: 1313 1314 Unit-less light intensity. Modifiers both and ir indicate 1314 1315 that measurements contain visible and infrared light 1315 - components or just infrared light, respectively. Modifier uv indicates 1316 - that measurements contain ultraviolet light components. 1316 + components or just infrared light, respectively. Modifier 1317 + uv indicates that measurements contain ultraviolet light 1318 + components. Modifier duv indicates that measurements 1319 + contain deep ultraviolet light components. 1317 1320 1318 1321 What: /sys/.../iio:deviceX/in_uvindex_input 1319 1322 KernelVersion: 4.6
+1
drivers/iio/industrialio-core.c
··· 110 110 [IIO_MOD_LIGHT_GREEN] = "green", 111 111 [IIO_MOD_LIGHT_BLUE] = "blue", 112 112 [IIO_MOD_LIGHT_UV] = "uv", 113 + [IIO_MOD_LIGHT_DUV] = "duv", 113 114 [IIO_MOD_QUATERNION] = "quaternion", 114 115 [IIO_MOD_TEMP_AMBIENT] = "ambient", 115 116 [IIO_MOD_TEMP_OBJECT] = "object",
+1
include/uapi/linux/iio/types.h
··· 86 86 IIO_MOD_CO2, 87 87 IIO_MOD_VOC, 88 88 IIO_MOD_LIGHT_UV, 89 + IIO_MOD_LIGHT_DUV, 89 90 }; 90 91 91 92 enum iio_event_type {
+2
tools/iio/iio_event_monitor.c
··· 98 98 [IIO_MOD_LIGHT_GREEN] = "green", 99 99 [IIO_MOD_LIGHT_BLUE] = "blue", 100 100 [IIO_MOD_LIGHT_UV] = "uv", 101 + [IIO_MOD_LIGHT_DUV] = "duv", 101 102 [IIO_MOD_QUATERNION] = "quaternion", 102 103 [IIO_MOD_TEMP_AMBIENT] = "ambient", 103 104 [IIO_MOD_TEMP_OBJECT] = "object", ··· 183 182 case IIO_MOD_LIGHT_GREEN: 184 183 case IIO_MOD_LIGHT_BLUE: 185 184 case IIO_MOD_LIGHT_UV: 185 + case IIO_MOD_LIGHT_DUV: 186 186 case IIO_MOD_QUATERNION: 187 187 case IIO_MOD_TEMP_AMBIENT: 188 188 case IIO_MOD_TEMP_OBJECT: