Re: [PATCH v2 3/3] gpio: gpio-ltc4283: Add support for the LTC4283 Swap Controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 09, 2025 at 11:27:09AM +0100, Nuno Sá wrote:
> On Wed, 2025-09-03 at 13:26 +0200, Andy Shevchenko wrote:
> > On Wed, Sep 03, 2025 at 11:05:01AM +0100, Nuno Sá wrote:

...

> > > +/* Non-constant mask variant of FIELD_GET() and FIELD_PREP() */
> > > +#define field_get(_mask, _reg)	(((_reg) & (_mask)) >> (ffs(_mask) - 1))
> > > +#define field_prep(_mask, _val)	(((_val) << (ffs(_mask) - 1)) &
> > > (_mask))
> 
> Kind of agree and I remember to see some work some time ago regarding this but
> it seems it did not get anywhere. 

Just include a patch in your series. Let's see if CI and build bots blown from this.

-- 
With Best Regards,
Andy Shevchenko






[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux