Re: [RFC PATCH v1 1/4] iio: types: add IIO_VOLUMEFLOW channel type
From: Jonathan Cameron
Date: Tue May 26 2026 - 12:07:16 EST
On Sun, 24 May 2026 14:39:06 -0700
Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> On 5/24/26 13:49, Wadim Mueller wrote:
> > From: Wadim Mueller <wadim.mueller@xxxxxxxx>
> >
> > 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.
> >
>
> Two questions: Why restricting to liquid (there are also gas flow sensors),
> and why litres/second and not per minute which seems to be a more common
> unit ?
I'd rather we went to the SI units where possible.
With long hindsight it was a mistake not doing this everywhere because
it means people have to constantly check what the units are for a given
channel type. For almost everything we've added in last 10 ish years
it's been base SI units.
>
> More on the latter in patch 3.
>
> Thanks,
> Guenter