On Wed, Sep 20, 2023 at 01:58:37PM +0200, Linus Walleij wrote: > On Tue, Sep 19, 2023 at 12:38 PM Marek Behún <kabel@xxxxxxxxxx> wrote: ... > > + if (type & IRQ_TYPE_EDGE_RISING) > > + mcu->rising |= bit; > > + else > > + mcu->rising &= ~bit; > > And with bits in place of bitmasks these would be > > if () > __set_bit(bit, mcu->rising); > else > __clear_bit(bit, mcu->rising); More precisely __assign_bit() in this case. -- With Best Regards, Andy Shevchenko