summaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2025-03-04 14:05:39 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2025-03-18 18:56:02 +0300
commitb28f47ac3ddd072cce0e447ace89e2b4d6932c66 (patch)
tree28cc0c9a16f76d6df06774f94f9bd64f4440d83b /include/linux/mtd
parentddc210cf8b8a8be68051ad958bf3e2cef6b681c2 (diff)
downloadlinux-b28f47ac3ddd072cce0e447ace89e2b4d6932c66.tar.xz
mtd: spinand: Improve spinand_info macros style
Let's assume all these macros should not have a trailing comma, this way the caller can use a more formal and usual C writing style, as reflected in the Macronix driver. Acked-by: Pratyush Yadav <pratyush@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/spinand.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mtd/spinand.h b/include/linux/mtd/spinand.h
index 5837a09ab9d8..1e748958dad4 100644
--- a/include/linux/mtd/spinand.h
+++ b/include/linux/mtd/spinand.h
@@ -502,10 +502,10 @@ struct spinand_info {
}
#define SPINAND_SELECT_TARGET(__func) \
- .select_target = __func,
+ .select_target = __func
#define SPINAND_CONT_READ(__set_cont_read) \
- .set_cont_read = __set_cont_read,
+ .set_cont_read = __set_cont_read
#define SPINAND_FACT_OTP_INFO(__npages, __start_page, __ops) \
.fact_otp = { \
@@ -526,8 +526,8 @@ struct spinand_info {
}
#define SPINAND_READ_RETRY(__read_retries, __set_read_retry) \
- .read_retries = __read_retries, \
- .set_read_retry = __set_read_retry,
+ .read_retries = __read_retries, \
+ .set_read_retry = __set_read_retry
#define SPINAND_INFO(__model, __id, __memorg, __eccreq, __op_variants, \
__flags, ...) \