[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <720a960d-797b-4404-90ab-e0c75c12a151@sirena.org.uk>
Date: Wed, 26 Nov 2025 12:05:22 +0000
From: Mark Brown <broonie@...nel.org>
To: david laight <david.laight@...box.com>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Prajna Rajendra Kumar <prajna.rajendrakumar@...rochip.com>,
linux-spi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/6] spi: microchip-core: Refactor FIFO read and write
handlers
On Wed, Nov 26, 2025 at 09:21:45AM +0000, david laight wrote:
> I'm not sure I don't prefer the version with one writeb() call.
> How about:
> writeb(spi->tx_buf ? *spi->tx_buf++ : 0xaa,
> spi->regs + MCHP_CORESPI_REG_TXDATA);
Please don't abuse the ternery operator like this, just write normal
conditional statements.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists