Re: [PATCH v2] iio: adc: ti-ads8688: use read_avail for available attributes

From: Andy Shevchenko

Date: Thu Mar 26 2026 - 05:10:23 EST


On Thu, Mar 26, 2026 at 10:55:06AM +0200, Andy Shevchenko wrote:
> On Wed, Mar 25, 2026 at 11:09:42AM +0000, Gabriel Rondon wrote:

...

> > Changes in v2:
> > - Use -BIT() macro instead of -(1 << ...) to avoid potential UB and
> > improve readability (Andy Shevchenko)
>
> Not really (and LKP showed that), I suggested to use GENMASK().

But it will still cut the value, so you most likely would like to have
GENMASK_U16() or alike.

--
With Best Regards,
Andy Shevchenko