From e598e4b9be84dc299c5ab9fb0da4d3cc29182030 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Mon, 17 Oct 2022 19:52:13 -0400 Subject: [PATCH] iio.h: sync to upstream kernels sync the iio_event_type, iio_modifier, from upstream kernel commits: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/linux/iio/types.h?id=835e699ef82adfc85ac4cc3f1f237c1adfdefd20 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/linux/iio/types.h?id=bcc57a48eaee63a71983996c4c9d89ce7cbf55d9 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/linux/iio/types.h?id=dcedf14553810cd6bbf7227c995beb4548e0859d https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/linux/iio/types.h?id=a1a5cfe70cd29a59a9a85290dfe95ed1c8df1193 Signed-off-by: Robin Getz --- channel.c | 6 ++++++ iio.h | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/channel.c b/channel.c index 7a60f6572..2f92459c1 100644 --- a/channel.c +++ b/channel.c @@ -108,6 +108,12 @@ static const char * const modifier_names[] = { [IIO_MOD_PM2P5] = "pm2p5", [IIO_MOD_PM4] = "pm4", [IIO_MOD_PM10] = "pm10", + [IIO_MOD_LINEAR_X] = "x-g", + [IIO_MOD_LINEAR_Y] = "y-g", + [IIO_MOD_LINEAR_Z] = "z-g", + [IIO_MOD_PITCH] = "pitch", + [IIO_MOD_YAW] = "yaw", + [IIO_MOD_ROLL] = "roll", }; /* diff --git a/iio.h b/iio.h index cefac60e6..135e335c9 100644 --- a/iio.h +++ b/iio.h @@ -190,6 +190,12 @@ enum iio_modifier { IIO_MOD_ETHANOL, IIO_MOD_H2, IIO_MOD_O2, + IIO_MOD_LINEAR_X, + IIO_MOD_LINEAR_Y, + IIO_MOD_LINEAR_Z, + IIO_MOD_PITCH, + IIO_MOD_YAW, + IIO_MOD_ROLL, }; /** @@ -206,6 +212,8 @@ enum iio_event_type { IIO_EV_TYPE_THRESH_ADAPTIVE, IIO_EV_TYPE_MAG_ADAPTIVE, IIO_EV_TYPE_CHANGE, + IIO_EV_TYPE_MAG_REFERENCED, + IIO_EV_TYPE_GESTURE, }; /** @@ -219,6 +227,8 @@ enum iio_event_direction { IIO_EV_DIR_RISING, IIO_EV_DIR_FALLING, IIO_EV_DIR_NONE, + IIO_EV_DIR_SINGLETAP, + IIO_EV_DIR_DOUBLETAP, }; #endif /* _IIO_TYPES_H_ */