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.

Pad list items to have a single space bar pre/post item.

Signed-off-by: Pawel Zalewski <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
---
 drivers/mtd/spi-nor/controllers/hisi-sfc.c  | 4 ++--
 drivers/mtd/spi-nor/controllers/nxp-spifi.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/spi-nor/controllers/hisi-sfc.c 
b/drivers/mtd/spi-nor/controllers/hisi-sfc.c
index 4f6631950a5b..a2a1a8f44b86 100644
--- a/drivers/mtd/spi-nor/controllers/hisi-sfc.c
+++ b/drivers/mtd/spi-nor/controllers/hisi-sfc.c
@@ -473,8 +473,8 @@ static void hisi_spi_nor_remove(struct platform_device 
*pdev)
 }
 
 static const struct of_device_id hisi_spi_nor_dt_ids[] = {
-       { .compatible = "hisilicon,fmc-spi-nor"},
-       { /* sentinel */ }
+       { .compatible = "hisilicon,fmc-spi-nor" },
+       { }
 };
 MODULE_DEVICE_TABLE(of, hisi_spi_nor_dt_ids);
 
diff --git a/drivers/mtd/spi-nor/controllers/nxp-spifi.c 
b/drivers/mtd/spi-nor/controllers/nxp-spifi.c
index 30fe2d414f07..d7ee409aae9b 100644
--- a/drivers/mtd/spi-nor/controllers/nxp-spifi.c
+++ b/drivers/mtd/spi-nor/controllers/nxp-spifi.c
@@ -439,8 +439,8 @@ static void nxp_spifi_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id nxp_spifi_match[] = {
-       {.compatible = "nxp,lpc1773-spifi"},
-       { /* sentinel */ }
+       { .compatible = "nxp,lpc1773-spifi" },
+       { }
 };
 MODULE_DEVICE_TABLE(of, nxp_spifi_match);
 

-- 
2.53.0


Reply via email to