]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
iio: Add channel for UV index
authorPeter Meerwald-Stadler <pmeerw@pmeerw.net>
Sun, 20 Mar 2016 15:20:23 +0000 (16:20 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Apr 2016 10:14:01 +0000 (11:14 +0100)
UV index indicating strength of sunburn-producing ultraviolet (UV) radiation

Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio
drivers/iio/industrialio-core.c
include/uapi/linux/iio/types.h
tools/iio/iio_event_monitor.c

index 6fb9180e7661e356eaacc8e458dacbb6b2f204d7..f155eff910f91f51c88478090cd7264a8968f22c 100644 (file)
@@ -1264,6 +1264,15 @@ Description:
                components or just infrared light, respectively. Modifier uv indicates
                that measurements contain ultraviolet light components.
 
+What:          /sys/.../iio:deviceX/in_uvindex_input
+KernelVersion: 4.6
+Contact:       linux-iio@vger.kernel.org
+Description:
+               UV light intensity index measuring the human skin's response to
+               different wavelength of sunlight weighted according to the
+               standardised CIE Erythemal Action Spectrum. UV index values range
+               from 0 (low) to >=11 (extreme).
+
 What:          /sys/.../iio:deviceX/in_intensity_red_integration_time
 What:          /sys/.../iio:deviceX/in_intensity_green_integration_time
 What:          /sys/.../iio:deviceX/in_intensity_blue_integration_time
index 88353ae0ec07c3ec621eca31746444988e8d83cb..190a5939fd8cfcadd82b86ab7ca868b95226edd7 100644 (file)
@@ -79,6 +79,7 @@ static const char * const iio_chan_type_name_spec[] = {
        [IIO_CONCENTRATION] = "concentration",
        [IIO_RESISTANCE] = "resistance",
        [IIO_PH] = "ph",
+       [IIO_UVINDEX] = "uvindex",
 };
 
 static const char * const iio_modifier_names[] = {
index 9337eceb9f9d50361b561f71960117149b1c2879..b0916fc72cce733e760fb5d92b3f510c1cd25514 100644 (file)
@@ -38,6 +38,7 @@ enum iio_chan_type {
        IIO_CONCENTRATION,
        IIO_RESISTANCE,
        IIO_PH,
+       IIO_UVINDEX,
 };
 
 enum iio_modifier {
index 8d7d9797480bf22784c28b7c296827b3bf98871e..d9b7e0f306c6d196aea28162285e52c39848596c 100644 (file)
@@ -56,6 +56,7 @@ static const char * const iio_chan_type_name_spec[] = {
        [IIO_CONCENTRATION] = "concentration",
        [IIO_RESISTANCE] = "resistance",
        [IIO_PH] = "ph",
+       [IIO_UVINDEX] = "uvindex",
 };
 
 static const char * const iio_ev_type_text[] = {
@@ -147,6 +148,7 @@ static bool event_is_known(struct iio_event_data *event)
        case IIO_CONCENTRATION:
        case IIO_RESISTANCE:
        case IIO_PH:
+       case IIO_UVINDEX:
                break;
        default:
                return false;