Skip to contentSkip to conversation

iio: move LIGHT_UVA and LIGHT_UVB to the end of iio_modifier

PATCH RESEND Applied Javier Carrasco 2 participants 2 messages Jan 27, 2024 – Jan 28, 2024 IIO

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 iio: move LIGHT_UVA and LIGHT_UVB to the end of iio_modifier

The new modifiers should have added to the end of the enum, so they do not affect the existing entries.

No modifiers were added since then, so they can be moved safely to the end of the list.

Move IIO_MOD_LIGHT_UVA and IIO_MOD_LIGHT_UVB to the end of iio_modifier.

Fixes b89710bd215e ("iio: add modifiers for A and B ultraviolet light")
---
 include/uapi/linux/iio/types.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/iio/types.h +2 -2
index 5060963707b1..f2e0b2d50e6b 100644
@@ -91,8 +91,6 @@ 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,
@@ -107,6 +105,8 @@ enum iio_modifier {
 	IIO_MOD_PITCH,
 	IIO_MOD_YAW,
 	IIO_MOD_ROLL,
+	IIO_MOD_LIGHT_UVA,
+	IIO_MOD_LIGHT_UVB,
 };
 
 enum iio_event_type {
Signature · 1 line
2.39.2
maintainer Applied
#1 lore raw
Quoted 11 lines · On Sat, 27 Jan 2024 21:02:08 +0100 Javier Carrasco…

The new modifiers should have added to the end of the enum, so they do not affect the existing entries.

No modifiers were added since then, so they can be moved safely to the end of the list.

Move IIO_MOD_LIGHT_UVA and IIO_MOD_LIGHT_UVB to the end of iio_modifier.

Fixes b89710bd215e ("iio: add modifiers for A and B ultraviolet light")

Thanks for the resend.

Applied to the fixes-togreg branch of iio.git

Jonathan

Quoted 26 lines
---
 include/uapi/linux/iio/types.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/iio/types.h +2 -2
index 5060963707b1..f2e0b2d50e6b 100644
@@ -91,8 +91,6 @@ 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,
@@ -107,6 +105,8 @@ enum iio_modifier {
 	IIO_MOD_PITCH,
 	IIO_MOD_YAW,
 	IIO_MOD_ROLL,
+	IIO_MOD_LIGHT_UVA,
+	IIO_MOD_LIGHT_UVB,
 };
 
 enum iio_event_type {