summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLiviu Stan <liviu.stan@analog.com>2026-05-25 19:39:34 +0300
committerJonathan Cameron <jic23@kernel.org>2026-05-31 13:01:50 +0300
commit622775dbc56a6349fc98b368041e3224bfeeb9de (patch)
treebdb408b8eb6ecce009e280ba2509a6d098517cef /include
parentb46696afbceffd926adbeb62180554c2096cee78 (diff)
downloadlinux-622775dbc56a6349fc98b368041e3224bfeeb9de.tar.xz
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')
-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 d7c2bb223651..c9295c707041 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 {