aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hid-sensor-ids.h
diff options
context:
space:
mode:
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>2023-09-19 13:40:52 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-09-24 13:31:33 +0100
commitee3710f39f9d0ae5137a866138d005fe1ad18132 (patch)
treec6f8fbfe360305122831195f9757c53ee65d32f0 /include/linux/hid-sensor-ids.h
parentiio: Add channel type for chromaticity (diff)
downloadwireguard-linux-ee3710f39f9d0ae5137a866138d005fe1ad18132.tar.xz
wireguard-linux-ee3710f39f9d0ae5137a866138d005fe1ad18132.zip
iio: hid-sensor-als: Add light chromaticity support
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 light chromaticity x and y. Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Acked-by: Srinivas Pandruvada<srinivas.pandruvada@linux.intel.com> Link: https://lore.kernel.org/r/20230919081054.2050714-8-Basavaraj.Natikar@amd.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/hid-sensor-ids.h')
-rw-r--r--include/linux/hid-sensor-ids.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hid-sensor-ids.h b/include/linux/hid-sensor-ids.h
index 8af4fb3e0254..6730ee900ee1 100644
--- a/include/linux/hid-sensor-ids.h
+++ b/include/linux/hid-sensor-ids.h
@@ -22,6 +22,9 @@
#define HID_USAGE_SENSOR_DATA_LIGHT 0x2004d0
#define HID_USAGE_SENSOR_LIGHT_ILLUM 0x2004d1
#define HID_USAGE_SENSOR_LIGHT_COLOR_TEMPERATURE 0x2004d2
+#define HID_USAGE_SENSOR_LIGHT_CHROMATICITY 0x2004d3
+#define HID_USAGE_SENSOR_LIGHT_CHROMATICITY_X 0x2004d4
+#define HID_USAGE_SENSOR_LIGHT_CHROMATICITY_Y 0x2004d5
/* PROX (200011) */
#define HID_USAGE_SENSOR_PROX 0x200011