RE: [PATCH 2/2] iio: temperature: ltc2983: Add support for ADT7604

From: Stan, Liviu

Date: Mon May 11 2026 - 08:09:53 EST


On Mon, 11 May 2026 Jonathan Cameron wrote:
> > > Ok. So what are our options here? Present it as simple resistance and leave
> > > userspace to figure it out or add a new channel type? To me feels like new
> > > channel type makes sense.
> >
> > The current approach presents it as IIO_TEMP since the chip outputs coverage
> > (using the custom table interpolation) via the temperature result bank, not
> > the resistance bank, but I agree a new channel type makes sense. Should I
> > create a specific type like IIO_COVERAGE_PERCENT or would a general
> > IIO_PERCENTAGE be better?
>
> For ABI purposes we don't care where it comes from.
>
> We already have some 'ratio' type measurements like concentration which are
> percentages and similar to those I think we need some indication of 'what'
> is being measured given it's unit free. Hence IIO_COVERAGE_PERCENT seems
> the better choice to me.

Understood. Will do that in v2.

Thank you!

Liviu