On Sun, May 18, 2025 at 11:13:15AM +0000, Lothar Rubusch wrote: > Evaluate the devicetree property for an optional interrupt line, and > configure the interrupt mapping accordingly. When no interrupt line > is defined in the devicetree, keep the FIFO in bypass mode as before. ... > +#define ADXL313_INT_NONE 0 Hmm... I would rather make it U8_MAX, but it's up to you. > +#define ADXL313_INT1 1 > +#define ADXL313_INT2 2 ... > + /* FIFO_STREAM mode */ > + regval = int_line == ADXL313_INT2 ? 0xff : 0; One space too many. > + ret = regmap_write(data->regmap, ADXL313_REG_INT_MAP, regval); Don't you want to use regmap_assign_bits() or something like this to have the above ternary be included? > + if (ret) > + return ret; -- With Best Regards, Andy Shevchenko