Re: [PATCH v2 5/7] iio: core: Add IIO_COVERAGE_PERCENT channel type

From: Francesco Lavra

Date: Fri May 15 2026 - 05:06:00 EST


On Thu, 2026-05-14 at 17:46 +0300, Liviu Stan wrote:
> Add a new channel type for sensors that report fractional coverage as
> a percentage. 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@xxxxxxxxxx>
> ---
> Changes in v2:
> - New patch.
>
>  Documentation/ABI/testing/sysfs-bus-iio | 10 ++++++++++
>  drivers/iio/industrialio-core.c         |  1 +
>  include/uapi/linux/iio/types.h          |  1 +
>  tools/iio/iio_event_monitor.c           |  1 +
>  4 files changed, 13 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio
> b/Documentation/ABI/testing/sysfs-bus-iio
> index 925a33fd309a..0570e8b8f5e5 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio
> +++ b/Documentation/ABI/testing/sysfs-bus-iio
> @@ -1980,6 +1980,16 @@ Description:
>                 Raw (unscaled no offset etc.) resistance reading.
>                 Units after application of scale and offset are ohms.
>  
> +What:          /sys/bus/iio/devices/iio:deviceX/in_coveragepercentX_raw
> +KernelVersion: 6.15

This should be 7.2 (at least).