aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
authorLiviu Stan <liviu.stan@analog.com>2026-05-25 19:39:34 +0300
committerJonathan Cameron <jic23@kernel.org>2026-05-31 11:01:50 +0100
commit622775dbc56a6349fc98b368041e3224bfeeb9de (patch)
treebdb408b8eb6ecce009e280ba2509a6d098517cef /include/uapi
parentb46696afbceffd926adbeb62180554c2096cee78 (diff)
downloadath-622775dbc56a6349fc98b368041e3224bfeeb9de.tar.gz
iio: core: Add IIO_COVERAGE channel type
Add a new channel type for sensors that report fractional coverage as a percentage. The sysfs attribute is in_coverageY_raw; after applying in_coverageY_scale the value is in percent. The first user is the ADT7604 leak detector, where the value represents the portion of the sensing element that is wetted. Signed-off-by: Liviu Stan <liviu.stan@analog.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/iio/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h
index d7c2bb2236518..c9295c707041b 100644
--- a/include/uapi/linux/iio/types.h
+++ b/include/uapi/linux/iio/types.h
@@ -53,6 +53,7 @@ enum iio_chan_type {
IIO_CHROMATICITY,
IIO_ATTENTION,
IIO_ALTCURRENT,
+ IIO_COVERAGE,
};
enum iio_modifier {