[PATCH 05/10] mtd: devices: Unify *_device_id list terminator.

From: Pawel Zalewski

Date: Wed Nov 25 2026 - 11:29:23 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/devices/docg3.c | 2 +-
drivers/mtd/devices/mchp23k256.c | 4 ++--
drivers/mtd/devices/mchp48l640.c | 4 ++--
drivers/mtd/devices/mtd_dataflash.c | 8 ++++----
drivers/mtd/devices/mtd_intel_dg.c | 4 +---
drivers/mtd/devices/phram.c | 2 +-
drivers/mtd/devices/powernv_flash.c | 2 +-
drivers/mtd/devices/spear_smi.c | 2 +-
drivers/mtd/devices/st_spi_fsm.c | 2 +-
9 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index a8a77de1c6f0..1f0b1b0f4a83 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -2051,7 +2051,7 @@ static void docg3_release(struct platform_device *pdev)
#ifdef CONFIG_OF
static const struct of_device_id docg3_dt_ids[] = {
{ .compatible = "m-systems,diskonchip-g3" },
- {}
+ { }
};
MODULE_DEVICE_TABLE(of, docg3_dt_ids);
#endif
diff --git a/drivers/mtd/devices/mchp23k256.c b/drivers/mtd/devices/mchp23k256.c
index 05a4ebe21e4b..31c0f414f449 100644
--- a/drivers/mtd/devices/mchp23k256.c
+++ b/drivers/mtd/devices/mchp23k256.c
@@ -225,7 +225,7 @@ static const struct of_device_id mchp23k256_of_table[] = {
.compatible = "microchip,mchp23lcv1024",
.data = &mchp23lcv1024_caps,
},
- {}
+ { }
};
MODULE_DEVICE_TABLE(of, mchp23k256_of_table);

@@ -238,7 +238,7 @@ static const struct spi_device_id mchp23k256_spi_ids[] = {
.name = "mchp23lcv1024",
.driver_data = (kernel_ulong_t)&mchp23lcv1024_caps,
},
- {}
+ { }
};
MODULE_DEVICE_TABLE(spi, mchp23k256_spi_ids);

diff --git a/drivers/mtd/devices/mchp48l640.c b/drivers/mtd/devices/mchp48l640.c
index c6e83775638d..60dfe0980557 100644
--- a/drivers/mtd/devices/mchp48l640.c
+++ b/drivers/mtd/devices/mchp48l640.c
@@ -372,7 +372,7 @@ static const struct of_device_id mchp48l640_of_table[] = {
.compatible = "fujitsu,mb85rs128ty",
.data = &mb85rs128ty_caps,
},
- {}
+ { }
};
MODULE_DEVICE_TABLE(of, mchp48l640_of_table);

@@ -385,7 +385,7 @@ static const struct spi_device_id mchp48l640_spi_ids[] = {
.name = "mb85rs128ty",
.driver_data = (kernel_ulong_t)&mb85rs128ty_caps,
},
- {}
+ { }
};
MODULE_DEVICE_TABLE(spi, mchp48l640_spi_ids);

diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index e766258d76f7..607c5cbd2a83 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -99,15 +99,15 @@ struct dataflash {
static const struct of_device_id dataflash_dt_ids[] = {
{ .compatible = "atmel,at45", },
{ .compatible = "atmel,dataflash", },
- { /* sentinel */ }
+ { }
};
MODULE_DEVICE_TABLE(of, dataflash_dt_ids);
#endif

static const struct spi_device_id dataflash_spi_ids[] = {
- { .name = "at45", },
- { .name = "dataflash", },
- { /* sentinel */ }
+ { .name = "at45" },
+ { .name = "dataflash" },
+ { }
};
MODULE_DEVICE_TABLE(spi, dataflash_spi_ids);

diff --git a/drivers/mtd/devices/mtd_intel_dg.c b/drivers/mtd/devices/mtd_intel_dg.c
index 55a945c1a67a..63685615a02d 100644
--- a/drivers/mtd/devices/mtd_intel_dg.c
+++ b/drivers/mtd/devices/mtd_intel_dg.c
@@ -863,9 +863,7 @@ static const struct auxiliary_device_id intel_dg_mtd_id_table[] = {
{
.name = "xe.nvm",
},
- {
- /* sentinel */
- }
+ { }
};
MODULE_DEVICE_TABLE(auxiliary, intel_dg_mtd_id_table);

diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index b42cadcd76b1..7c6b2852916c 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -371,7 +371,7 @@ MODULE_PARM_DESC(phram, "Memory region to map. \"phram=<name>,<start>,<length>[,
#ifdef CONFIG_OF
static const struct of_device_id phram_of_match[] = {
{ .compatible = "phram" },
- {}
+ { }
};
MODULE_DEVICE_TABLE(of, phram_of_match);
#endif
diff --git a/drivers/mtd/devices/powernv_flash.c b/drivers/mtd/devices/powernv_flash.c
index 4bd7b41a03b7..596d592a8ede 100644
--- a/drivers/mtd/devices/powernv_flash.c
+++ b/drivers/mtd/devices/powernv_flash.c
@@ -278,7 +278,7 @@ static void powernv_flash_release(struct platform_device *pdev)

static const struct of_device_id powernv_flash_match[] = {
{ .compatible = "ibm,opal-flash" },
- {}
+ { }
};

static struct platform_driver powernv_flash_driver = {
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c
index dc66ed852d80..947d82bebe4a 100644
--- a/drivers/mtd/devices/spear_smi.c
+++ b/drivers/mtd/devices/spear_smi.c
@@ -1079,7 +1079,7 @@ static SIMPLE_DEV_PM_OPS(spear_smi_pm_ops, spear_smi_suspend, spear_smi_resume);
#ifdef CONFIG_OF
static const struct of_device_id spear_smi_id_table[] = {
{ .compatible = "st,spear600-smi" },
- {}
+ { }
};
MODULE_DEVICE_TABLE(of, spear_smi_id_table);
#endif
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
index 94872e03a04d..abdcef3c91b0 100644
--- a/drivers/mtd/devices/st_spi_fsm.c
+++ b/drivers/mtd/devices/st_spi_fsm.c
@@ -2124,7 +2124,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stfsm_pm_ops, stfsmfsm_suspend, stfsmfsm_resume)

static const struct of_device_id stfsm_match[] = {
{ .compatible = "st,spi-fsm", },
- {},
+ { }
};
MODULE_DEVICE_TABLE(of, stfsm_match);


--
2.53.0