Re: [PATCH v4 3/6] iio: add processed write API
From: Romain Gantois
Date: Mon Dec 08 2025 - 03:45:49 EST
Hello Jonathan,
On Sunday, 7 December 2025 19:52:16 CET Jonathan Cameron wrote:
> On Mon, 24 Nov 2025 15:48:07 +0100
>
> Romain Gantois <romain.gantois@xxxxxxxxxxx> wrote:
> > Add a function to allow IIO consumers to write a processed value to a
> > channel.
> >
> > Signed-off-by: Romain Gantois <romain.gantois@xxxxxxxxxxx>
>
> I'm lazy so I'll just ask the question rather than try to find an answer.
> Is there any existing consumer of DAC channels that can use this?
I'm currently considering upstreaming an extension of iio-rescale which
supports writing to the channel. This could be used to represent some frontend
to a DAC output e.g. an OpAmp inverter, which would be useful for my regulator
use case. At first glance, this looks like it could require this processed
write API, but I'm not 100% sure yet.
> It might be easier to land as a refactor than with the new driver and
> reduce what is in the more controversial patch for the regulator.
Agreed. For now, I'll be sidelining the regulator driver and focusing on
upstreaming support for IIO channels with analog front ends, so that there is
at least a way for userspace to directly write the require current/voltage
levels to an IIO channel.
Thanks,
--
Romain Gantois, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Attachment:
signature.asc
Description: This is a digitally signed message part.