Re: [PATCH v1 1/1] regmap: spi: Use spi_message_init_with_transfers()

From: Mark Brown
Date: Mon Jul 10 2023 - 11:55:17 EST


On Mon, Jul 10, 2023 at 06:01:47PM +0300, Andy Shevchenko wrote:
> On Mon, Jul 10, 2023 at 03:38:55PM +0100, Mark Brown wrote:
>
> > > + spi_message_init_with_transfers(&async->m, async->t, val ? 2 : 1);

> > I'm not sure this is a legibility win.

> Fair enough. Since it's not an inlined call, ion x86_64 it gives +64 bytes
> to the code.

> Let's drop it.

Sure. The ones without the ternery operator are fine.

Attachment: signature.asc
Description: PGP signature