]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: core: Add IIO_COVERAGE channel type
authorLiviu Stan <liviu.stan@analog.com>
Mon, 25 May 2026 16:39:34 +0000 (19:39 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:50 +0000 (11:01 +0100)
commit622775dbc56a6349fc98b368041e3224bfeeb9de
treebdb408b8eb6ecce009e280ba2509a6d098517cef
parentb46696afbceffd926adbeb62180554c2096cee78
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>
Documentation/ABI/testing/sysfs-bus-iio
drivers/iio/industrialio-core.c
include/uapi/linux/iio/types.h
tools/iio/iio_event_monitor.c