[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z3ZWt0Whyppr6GKX@shikoro>
Date: Thu, 2 Jan 2025 10:04:55 +0100
From: Wolfram Sang <wsa+renesas@...g-engineering.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: linux-i3c@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-renesas-soc@...r.kernel.org,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Przemysław Gaj <pgaj@...ence.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>
Subject: Re: [PATCH RFT v2 5/5] i3c: cdns: use get_parity8 helper instead of
open coding it
> > /* 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?
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists