On Wed, Sep 03, 2025 at 11:05:01AM +0100, Nuno Sá wrote: > The LTC4283 device has up to 8 pins that can be configured as GPIOs. > > Note that PGIO pins are not set as GPIOs by default so if they are > configured to be used as GPIOs we need to make sure to initialize them > to a sane default. They are set as inputs by default. ... > +/* 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)) Can we eventually stop copy'n'paste these and put them to bitfield.h, please? -- With Best Regards, Andy Shevchenko