[PATCH 10/10] mtd: parsers: Unify list terminator for of_device_id lists
From: Pawel Zalewski
Date: Wed Nov 25 2026 - 11:29:59 EST
Unify the list terminator to have a single space between the brackets and
no trailing comma. This change doesn't introduce any diffs between
pre/post to the compiled binaries of the modified drivers and just aligns
these to the common style with other *_device_id arrays.
Signed-off-by: Pawel Zalewski <pzalewski@xxxxxxxxxxxxxxxxxxxx>
---
drivers/mtd/parsers/afs.c | 2 +-
drivers/mtd/parsers/bcm47xxpart.c | 2 +-
drivers/mtd/parsers/bcm63xxpart.c | 2 +-
drivers/mtd/parsers/brcm_u-boot.c | 2 +-
drivers/mtd/parsers/parser_imagetag.c | 2 +-
drivers/mtd/parsers/parser_trx.c | 2 +-
drivers/mtd/parsers/qcomsmempart.c | 2 +-
drivers/mtd/parsers/redboot.c | 2 +-
drivers/mtd/parsers/scpart.c | 2 +-
drivers/mtd/parsers/tplink_safeloader.c | 2 +-
10 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/mtd/parsers/afs.c b/drivers/mtd/parsers/afs.c
index 7ab3d50f565e..eb6abf5330ca 100644
--- a/drivers/mtd/parsers/afs.c
+++ b/drivers/mtd/parsers/afs.c
@@ -386,7 +386,7 @@ static int parse_afs_partitions(struct mtd_info *mtd,
static const struct of_device_id mtd_parser_afs_of_match_table[] = {
{ .compatible = "arm,arm-firmware-suite" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, mtd_parser_afs_of_match_table);
diff --git a/drivers/mtd/parsers/bcm47xxpart.c b/drivers/mtd/parsers/bcm47xxpart.c
index a412c0e7bd4e..ee7c81894b9c 100644
--- a/drivers/mtd/parsers/bcm47xxpart.c
+++ b/drivers/mtd/parsers/bcm47xxpart.c
@@ -301,7 +301,7 @@ static int bcm47xxpart_parse(struct mtd_info *master,
static const struct of_device_id bcm47xxpart_of_match_table[] = {
{ .compatible = "brcm,bcm947xx-cfe-partitions" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, bcm47xxpart_of_match_table);
diff --git a/drivers/mtd/parsers/bcm63xxpart.c b/drivers/mtd/parsers/bcm63xxpart.c
index 6e7b1ae8f58f..78fbe8a681cb 100644
--- a/drivers/mtd/parsers/bcm63xxpart.c
+++ b/drivers/mtd/parsers/bcm63xxpart.c
@@ -153,7 +153,7 @@ static int bcm63xx_parse_cfe_partitions(struct mtd_info *master,
static const struct of_device_id parse_bcm63xx_cfe_match_table[] = {
{ .compatible = "brcm,bcm963xx-cfe-nor-partitions" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, parse_bcm63xx_cfe_match_table);
diff --git a/drivers/mtd/parsers/brcm_u-boot.c b/drivers/mtd/parsers/brcm_u-boot.c
index cd78e432f1de..d48d8ed73ca0 100644
--- a/drivers/mtd/parsers/brcm_u-boot.c
+++ b/drivers/mtd/parsers/brcm_u-boot.c
@@ -70,7 +70,7 @@ static int brcm_u_boot_parse(struct mtd_info *mtd,
static const struct of_device_id brcm_u_boot_of_match_table[] = {
{ .compatible = "brcm,u-boot" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, brcm_u_boot_of_match_table);
diff --git a/drivers/mtd/parsers/parser_imagetag.c b/drivers/mtd/parsers/parser_imagetag.c
index fab0949aabba..686ef88e3099 100644
--- a/drivers/mtd/parsers/parser_imagetag.c
+++ b/drivers/mtd/parsers/parser_imagetag.c
@@ -202,7 +202,7 @@ static int bcm963xx_parse_imagetag_partitions(struct mtd_info *master,
static const struct of_device_id parse_bcm963xx_imagetag_match_table[] = {
{ .compatible = "brcm,bcm963xx-imagetag" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, parse_bcm963xx_imagetag_match_table);
diff --git a/drivers/mtd/parsers/parser_trx.c b/drivers/mtd/parsers/parser_trx.c
index cf3bc9735238..db1129919084 100644
--- a/drivers/mtd/parsers/parser_trx.c
+++ b/drivers/mtd/parsers/parser_trx.c
@@ -120,7 +120,7 @@ static int parser_trx_parse(struct mtd_info *mtd,
static const struct of_device_id mtd_parser_trx_of_match_table[] = {
{ .compatible = "brcm,trx" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, mtd_parser_trx_of_match_table);
diff --git a/drivers/mtd/parsers/qcomsmempart.c b/drivers/mtd/parsers/qcomsmempart.c
index 1591aea48b28..d46555138978 100644
--- a/drivers/mtd/parsers/qcomsmempart.c
+++ b/drivers/mtd/parsers/qcomsmempart.c
@@ -180,7 +180,7 @@ static void parse_qcomsmem_cleanup(const struct mtd_partition *pparts,
static const struct of_device_id qcomsmem_of_match_table[] = {
{ .compatible = "qcom,smem-part" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, qcomsmem_of_match_table);
diff --git a/drivers/mtd/parsers/redboot.c b/drivers/mtd/parsers/redboot.c
index 120b2eab21fc..f8d421a88748 100644
--- a/drivers/mtd/parsers/redboot.c
+++ b/drivers/mtd/parsers/redboot.c
@@ -312,7 +312,7 @@ static int parse_redboot_partitions(struct mtd_info *master,
static const struct of_device_id mtd_parser_redboot_of_match_table[] = {
{ .compatible = "redboot-fis" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, mtd_parser_redboot_of_match_table);
diff --git a/drivers/mtd/parsers/scpart.c b/drivers/mtd/parsers/scpart.c
index ad6e9d5c3daa..e0bed5ef04d8 100644
--- a/drivers/mtd/parsers/scpart.c
+++ b/drivers/mtd/parsers/scpart.c
@@ -229,7 +229,7 @@ static int scpart_parse(struct mtd_info *master,
static const struct of_device_id scpart_parser_of_match_table[] = {
{ .compatible = "sercomm,sc-partitions" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, scpart_parser_of_match_table);
diff --git a/drivers/mtd/parsers/tplink_safeloader.c b/drivers/mtd/parsers/tplink_safeloader.c
index b770f41ef874..e9b25e236eb9 100644
--- a/drivers/mtd/parsers/tplink_safeloader.c
+++ b/drivers/mtd/parsers/tplink_safeloader.c
@@ -138,7 +138,7 @@ static void mtd_parser_tplink_safeloader_cleanup(const struct mtd_partition *ppa
static const struct of_device_id mtd_parser_tplink_safeloader_of_match_table[] = {
{ .compatible = "tplink,safeloader-partitions" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, mtd_parser_tplink_safeloader_of_match_table);
--
2.53.0