Re: [PATCH] iio: adc: ti-ads1262: use umin() for excitation array lengths

From: Jonathan Cameron

Date: Sat Nov 14 2026 - 18:26:33 EST


On Mon, 9 Nov 2026 10:35:53 +0100
Joshua Crofts <crofts@xxxxxxxxxx> wrote:

> On Sun, 08 Nov 2026 19:55:51 -0300
> Kurt Borja <kuurtb@xxxxxxxxx> wrote:
>
> > min() rejects mixing the signed count with the unsigned ARRAY_SIZE()
> > unless the compiler can prove count is non-negative, which fails on
> > some configs and breaks the build. count is already checked to be
> > non-negative, so use umin().
> >
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202610241549.J9R32Wf7-lkp@xxxxxxxxx/
> > Closes: https://lore.kernel.org/oe-kbuild-all/202611080814.7RmHoQ6e-lkp@xxxxxxxxx/
> > Fixes: b0b43a26dfc9 ("iio: adc: ti-ads1262: support excitation currents")
> > Signed-off-by: Kurt Borja <kuurtb@xxxxxxxxx>
> > ---
>
> Reviewed-by: Joshua Crofts <crofts@xxxxxxxxxx>
>

Applied. Thanks,

Jonathan