Re: [PATCH v3 1/3] iio: types: add IIO_VOLUMEFLOW channel type

From: Andy Shevchenko

Date: Wed Jun 03 2026 - 10:25:14 EST


On Sat, May 30, 2026 at 10:54:30PM +0200, Wadim Mueller wrote:
> Add a new IIO channel type for liquid volumetric flow sensors. The
> unit exposed via the standard _scale attribute is litres per second
> (l/s), so drivers reporting smaller native units (e.g. ml/min) only
> need to set a fractional scale.
>
> Update iio-core's name table, the iio_event_monitor whitelist and
> the sysfs-bus-iio ABI document to match. The new _scale attribute is
> folded into the existing shared _scale block; only the per-type _raw
> needs a fresh entry.

...

> +What: /sys/bus/iio/devices/iio:deviceX/in_volumeflow_raw
> +What: /sys/bus/iio/devices/iio:deviceX/in_volumeflowY_raw

> +KernelVersion: 6.19

This is wrong. It has to be 7.2 and unlikely makes it, so next one is 7.3.

> +Contact: linux-iio@xxxxxxxxxxxxxxx
> +Description:
> + Raw (unscaled) volumetric flow rate reading from the channel.
> + To convert to standard units (litres per second) apply the
> + channel's _scale (and _offset, when present).

--
With Best Regards,
Andy Shevchenko