On Tue, Mar 31, 2020 at 2:49 PM Nuno Sá <nuno.sa@xxxxxxxxxx> wrote: > > This patch adds a `regmap_update_bits()` like API to the ADIS library. > It provides locked and unlocked variant. > + __val &= ~mask; > + __val |= val & mask; You can use standard one liner, i.e. __val = (__val & ~mask) | (val & mask); -- With Best Regards, Andy Shevchenko