Skip to content

Commit

Permalink
iio.h: Add new iio_chan_type entry ('attention')
Browse files Browse the repository at this point in the history
Add a new iio_chan_type enum entry that was added in kernel v6.13-rc6.

Signed-off-by: Dan Nechita <[email protected]>
  • Loading branch information
dNechita committed Jan 10, 2025
1 parent 9c579e4 commit d3ac7a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_DELTA_VELOCITY] = "delta_velocity",
[IIO_COLORTEMP] = "colortemp",
[IIO_CHROMATICITY] = "chromaticity",
[IIO_ATTENTION] = "attention",
};

static const char * const hwmon_chan_type_name_spec[] = {
Expand Down
1 change: 1 addition & 0 deletions include/iio/iio.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ enum iio_chan_type {
IIO_DELTA_VELOCITY,
IIO_COLORTEMP,
IIO_CHROMATICITY,
IIO_ATTENTION,
IIO_CHAN_TYPE_UNKNOWN = INT_MAX
};

Expand Down

0 comments on commit d3ac7a6

Please sign in to comment.