These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From 227c5aa71f77e7fbb94474829b657b851e37fa39 Mon Sep 17 00:00:00 2001
|
|
From: Javier Carrasco <javier.carrasco.cruz@gmail.com>
|
|
Date: Mon, 27 Nov 2023 18:34:28 +0100
|
|
Subject: [PATCH] iio: add modifiers for A and B ultraviolet light
|
|
|
|
commit b89710bd215e650f0aaf8ffe7104413d46d44392 upstream.
|
|
|
|
Currently there are only two modifiers for ultraviolet light: a generic
|
|
one for any ultraviolet light (IIO_MOD_LIGHT_UV) and one for deep
|
|
ultraviolet (IIO_MOD_LIGHT_DUV), which is also referred as ultraviolet
|
|
C (UV-C) band and covers short-wave ultraviolet.
|
|
|
|
There are still no modifiers for the long-wave and medium-wave
|
|
ultraviolet bands. These two bands are the main components used to
|
|
obtain the UV index on the Earth's surface.
|
|
|
|
Add modifiers for the ultraviolet A (UV-A) and ultraviolet B (UV-B)
|
|
bands.
|
|
|
|
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
|
|
Link: https://lore.kernel.org/r/20231110-veml6075-v3-1-6ee46775b422@gmail.com
|
|
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
|
|
---
|
|
include/uapi/linux/iio/types.h | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/include/uapi/linux/iio/types.h
|
|
+++ b/include/uapi/linux/iio/types.h
|
|
@@ -91,6 +91,8 @@ enum iio_modifier {
|
|
IIO_MOD_CO2,
|
|
IIO_MOD_VOC,
|
|
IIO_MOD_LIGHT_UV,
|
|
+ IIO_MOD_LIGHT_UVA,
|
|
+ IIO_MOD_LIGHT_UVB,
|
|
IIO_MOD_LIGHT_DUV,
|
|
IIO_MOD_PM1,
|
|
IIO_MOD_PM2P5,
|