Skip to content

Commit d1f8587

Browse files
miquelraynalbroonie
authored andcommitted
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>
1 parent 30eb2e6 commit d1f8587

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/spi/spi-mem.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515

1616
#define SPI_MEM_OP_CMD(__opcode, __buswidth) \
1717
{ \
18+
.nbytes = 1, \
1819
.buswidth = __buswidth, \
1920
.opcode = __opcode, \
20-
.nbytes = 1, \
2121
}
2222

2323
#define SPI_MEM_OP_ADDR(__nbytes, __val, __buswidth) \
2424
{ \
2525
.nbytes = __nbytes, \
26-
.val = __val, \
2726
.buswidth = __buswidth, \
27+
.val = __val, \
2828
}
2929

3030
#define SPI_MEM_OP_NO_ADDR { }
@@ -39,18 +39,18 @@
3939

4040
#define SPI_MEM_OP_DATA_IN(__nbytes, __buf, __buswidth) \
4141
{ \
42+
.buswidth = __buswidth, \
4243
.dir = SPI_MEM_DATA_IN, \
4344
.nbytes = __nbytes, \
4445
.buf.in = __buf, \
45-
.buswidth = __buswidth, \
4646
}
4747

4848
#define SPI_MEM_OP_DATA_OUT(__nbytes, __buf, __buswidth) \
4949
{ \
50+
.buswidth = __buswidth, \
5051
.dir = SPI_MEM_DATA_OUT, \
5152
.nbytes = __nbytes, \
5253
.buf.out = __buf, \
53-
.buswidth = __buswidth, \
5454
}
5555

5656
#define SPI_MEM_OP_NO_DATA { }

0 commit comments

Comments
 (0)