summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2024-12-24 18:06:03 +0100
committerMark Brown <broonie@kernel.org>2025-01-09 20:16:39 +0000
commitd1f85873d2d62d6980e68d21d3a21f20b0664cc3 (patch)
tree3b15a515140ef946ea12302a231bd0f1e10a5d35
parent30eb2e6e78225f92f04a2325c6fd77fe8f5b4aab (diff)
spi: spi-mem: Reorder spi-mem macro assignments
Follow the order in which all the `struct spi_mem_op` members are defined. This is purely aesthetics, there is no functional change. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://patch.msgid.link/20241224-winbond-6-11-rc1-quad-support-v2-18-ad218dbc406f@bootlin.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--include/linux/spi/spi-mem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h
index c7a7719c2648..ca6ea01c40f8 100644
--- a/include/linux/spi/spi-mem.h
+++ b/include/linux/spi/spi-mem.h
@@ -15,16 +15,16 @@
#define SPI_MEM_OP_CMD(__opcode, __buswidth) \
{ \
+ .nbytes = 1, \
.buswidth = __buswidth, \
.opcode = __opcode, \
- .nbytes = 1, \
}
#define SPI_MEM_OP_ADDR(__nbytes, __val, __buswidth) \
{ \
.nbytes = __nbytes, \
- .val = __val, \
.buswidth = __buswidth, \
+ .val = __val, \
}
#define SPI_MEM_OP_NO_ADDR { }
@@ -39,18 +39,18 @@
#define SPI_MEM_OP_DATA_IN(__nbytes, __buf, __buswidth) \
{ \
+ .buswidth = __buswidth, \
.dir = SPI_MEM_DATA_IN, \
.nbytes = __nbytes, \
.buf.in = __buf, \
- .buswidth = __buswidth, \
}
#define SPI_MEM_OP_DATA_OUT(__nbytes, __buf, __buswidth) \
{ \
+ .buswidth = __buswidth, \
.dir = SPI_MEM_DATA_OUT, \
.nbytes = __nbytes, \
.buf.out = __buf, \
- .buswidth = __buswidth, \
}
#define SPI_MEM_OP_NO_DATA { }