Re: [PATCH v2 1/8] iio: adc: ad4030: Fix _scale value for common-mode channels
From: Jonathan Cameron
Date: Sat Sep 20 2025 - 06:36:16 EST
On Thu, 18 Sep 2025 14:32:23 -0500
David Lechner <dlechner@xxxxxxxxxxxx> wrote:
> On 9/18/25 12:37 PM, Marcelo Schmitt wrote:
> > Previously, the driver always used the amount of precision bits of
> > differential input channels to provide the scale to mV. Though,
> > differential and common-mode voltage channels have different amount of
> > precision bits and the correct number of precision bits must be considered
> > to get to a proper mV scale factor for each one. Use channel specific
> > number of precision bits to provide the correct scale value for each
> > channel.
> >
> > Fixes: de67f28abe58 ("iio: adc: ad4030: check scan_type for error")
> > Fixes: 949abd1ca5a4 ("iio: adc: ad4030: add averaging support")
> > Signed-off-by: Marcelo Schmitt <marcelo.schmitt@xxxxxxxxxx>
> > ---
> Reviewed-by: David Lechner <dlechner@xxxxxxxxxxxx>
>
I'll queue this one up now, but not push the branch out yet as it will
make a mess of linux-next (due to ordering of trees).
Jonathan