On Wed, Oct 26, 2022 at 01:21:23PM +0200, Levente Révész wrote: ... > -#define PCA_PCAL BIT(9) > -#define PCA_LATCH_INT (PCA_PCAL | PCA_INT) Looking at this again, why not to make PCAL bit as a part of the type, so you will have the check below much easier, like masking for PCAL bit and that's it. -- With Best Regards, Andy Shevchenko