Re: [PATCH v1 1/1] regmap: irq: Use one way of setting all bits in the register

From: Andy Shevchenko
Date: Thu Feb 06 2025 - 14:00:21 EST


On Thu, Feb 06, 2025 at 04:51:35PM +0000, Mark Brown wrote:
> On Thu, Feb 06, 2025 at 06:29:33PM +0200, Andy Shevchenko wrote:
> > Currently there are two ways of how we represent all bits set, i.e.
> > UINT_MAX and GENMASK(31, 0). Use the latter as the single way of
> > doing that, which is crystal clear on how many bits we are talking
> > about.
>
> I think I'd rather go to UINT_MAX since it's more obviously correct if
> we see platforms with int that isn't 32 bits.

Okay!

--
With Best Regards,
Andy Shevchenko