From c0cb76a8fd2e1532373b2065824a02fd344c1976 Mon Sep 17 00:00:00 2001 From: Dan Nechita Date: Fri, 10 Jan 2025 15:47:13 +0200 Subject: [PATCH] iio.h: Add new iio_chan_type entry ('attention') Add a new iio_chan_type enum entry that was added in kernel v6.13-rc6. Signed-off-by: Dan Nechita --- channel.c | 1 + include/iio/iio.h | 1 + 2 files changed, 2 insertions(+) diff --git a/channel.c b/channel.c index c35454570..5c8756017 100644 --- a/channel.c +++ b/channel.c @@ -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[] = { diff --git a/include/iio/iio.h b/include/iio/iio.h index 82395aabf..b515435ab 100644 --- a/include/iio/iio.h +++ b/include/iio/iio.h @@ -210,6 +210,7 @@ enum iio_chan_type { IIO_DELTA_VELOCITY, IIO_COLORTEMP, IIO_CHROMATICITY, + IIO_ATTENTION, IIO_CHAN_TYPE_UNKNOWN = INT_MAX };