mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
iio: Add channel for UV index
UV index indicating strength of sunburn-producing ultraviolet (UV) radiation Signed-off-by: Peter Meerwald-Stadler <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
2c5ff1f9a6
commit
d409404cf6
4 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue