diff mbox series

[v3,18/27] spi: spi-mem: Reorder spi-mem macro assignments

Message ID 20250110-winbond-6-11-rc1-quad-support-v3-18-7ab4bd56cf6e@bootlin.com (mailing list archive)
State Handled Elsewhere
Headers show
Series spi-nand/spi-mem DTR support | expand

Checks

Context Check Description
conchuod/vmtest-for-next-PR fail PR summary
conchuod/patch-18-test-1 success .github/scripts/patches/tests/build_rv32_defconfig.sh took 138.40s
conchuod/patch-18-test-2 success .github/scripts/patches/tests/build_rv64_clang_allmodconfig.sh took 1438.41s
conchuod/patch-18-test-3 success .github/scripts/patches/tests/build_rv64_gcc_allmodconfig.sh took 1682.95s
conchuod/patch-18-test-4 success .github/scripts/patches/tests/build_rv64_nommu_k210_defconfig.sh took 21.29s
conchuod/patch-18-test-5 success .github/scripts/patches/tests/build_rv64_nommu_virt_defconfig.sh took 23.11s
conchuod/patch-18-test-6 success .github/scripts/patches/tests/checkpatch.sh took 0.48s
conchuod/patch-18-test-7 success .github/scripts/patches/tests/dtb_warn_rv64.sh took 44.14s
conchuod/patch-18-test-8 success .github/scripts/patches/tests/header_inline.sh took 0.01s
conchuod/patch-18-test-9 success .github/scripts/patches/tests/kdoc.sh took 0.57s
conchuod/patch-18-test-10 success .github/scripts/patches/tests/module_param.sh took 0.01s
conchuod/patch-18-test-11 success .github/scripts/patches/tests/verify_fixes.sh took 0.00s
conchuod/patch-18-test-12 success .github/scripts/patches/tests/verify_signedoff.sh took 0.04s

Commit Message

Miquel Raynal Jan. 10, 2025, 2:45 p.m. UTC
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>
---
 include/linux/spi/spi-mem.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h
index c7a7719c264846ad9fce613ba96d9284ad7893e7..ca6ea01c40f85095ac2730cb424cfb21d7daa700 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	{ }