Hi Wolfram, On Thu, Jan 2, 2025 at 10:04 AM Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> wrote: > > > /* RR0[0] = ~XOR(addr[6:0]) */ > > > - if (!(hweight8(addr & 0x7f) & 1)) > > > - ret |= 1; > > > + ret |= parity8(addr & 0x7f) ? 0 : BIT(0); > > > > Perhaps keep the if()-construct, to better match the example in the > > documentation in 1/5? > > Can do, don't care super much. I chose this construct because the other > drivers in I3C use the above pattern. You still like the if() better? Let's add more bike-shedding in 2025 ;-) There's also a general dislike for the ternary operator (BTW, I do agree it has its uses), especially if one of the paths is a no-op, like ORing with zero. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds