Re: [PATCH 1/2] iio: adc: ad9467: fix ad9434 vref mask

From: Andy Shevchenko
Date: Mon Dec 01 2025 - 08:50:30 EST


On Mon, Dec 1, 2025 at 2:00 PM Tomas Melin <tomas.melin@xxxxxxxxxxx> wrote:
>
> The mask setting is 5 bits wide for the ad9434
> (ref. data sheet register 0x18 FLEX_VREF). Apparently the settings
> from ad9265 were copied by mistake when support for the device was added
> to the driver.

...

> -#define AD9434_REG_VREF_MASK 0xC0
> +#define AD9434_REG_VREF_MASK 0x1F

Can you switch to use GENMASK() while at it?

--
With Best Regards,
Andy Shevchenko