Skip to content

Commit

Permalink
iio.h: Add IIO_MOD_LIGHT_UVA/UVB modifiers
Browse files Browse the repository at this point in the history
Add the IIO_MOD_LIGHT_UVA and IIO_MOD_LIGHT_UVB modifiers that will be
introduced in Linux v6.8.

Note that Linux v6.8-rc1 added those entries in the middle of the
iio_modifier enum (which is wrong as it breaks ABI), but it will be
fixed for the regular v6.8 release.

Fixes analogdevicesinc#1130.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Jan 25, 2024
1 parent d30d9b2 commit 1af94f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ static const char * const modifier_names[] = {
[IIO_MOD_PITCH] = "pitch",
[IIO_MOD_YAW] = "yaw",
[IIO_MOD_ROLL] = "roll",
[IIO_MOD_LIGHT_UVA] = "uva",
[IIO_MOD_LIGHT_UVB] = "uvb",
};

/*
Expand Down
2 changes: 2 additions & 0 deletions include/iio/iio.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ enum iio_modifier {
IIO_MOD_PITCH,
IIO_MOD_YAW,
IIO_MOD_ROLL,
IIO_MOD_LIGHT_UVA,
IIO_MOD_LIGHT_UVB,
};

/**
Expand Down

0 comments on commit 1af94f2

Please sign in to comment.