[PATCH v3 23/23] mfd: Unify style of spi_device_id arrays
From: Uwe Kleine-König (The Capable Hub)
Date: Thu Jul 09 2026 - 13:10:51 EST
These arrays already mostly match the most used and generally
recommended coding style. That is:
- no comma after the list terminator;
- a comma after an initializer if (and only if) the closing } is not
directly following;
- no explicit zeros in the list terminator;
- a space after an opening { and before a closing }, a single space in
the list terminator;
Adapt the offenders accordingly.
Reviewed-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/mfd/altera-a10sr.c | 2 +-
drivers/mfd/arizona-spi.c | 2 +-
drivers/mfd/cs40l50-spi.c | 2 +-
drivers/mfd/da9052-spi.c | 2 +-
drivers/mfd/motorola-cpcap.c | 6 +++---
drivers/mfd/rsmu_spi.c | 2 +-
drivers/mfd/sprd-sc27xx-spi.c | 2 +-
drivers/mfd/wm831x-spi.c | 2 +-
8 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/mfd/altera-a10sr.c b/drivers/mfd/altera-a10sr.c
index 260e590b87b1..6ce20c764e30 100644
--- a/drivers/mfd/altera-a10sr.c
+++ b/drivers/mfd/altera-a10sr.c
@@ -155,7 +155,7 @@ MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match);
static const struct spi_device_id altr_a10sr_spi_ids[] = {
{ .name = "a10sr" },
- { },
+ { }
};
MODULE_DEVICE_TABLE(spi, altr_a10sr_spi_ids);
diff --git a/drivers/mfd/arizona-spi.c b/drivers/mfd/arizona-spi.c
index c4ee5b499fce..c02b291574a6 100644
--- a/drivers/mfd/arizona-spi.c
+++ b/drivers/mfd/arizona-spi.c
@@ -260,7 +260,7 @@ static const struct spi_device_id arizona_spi_ids[] = {
{ .name = "wm8280", .driver_data = WM8280 },
{ .name = "wm1831", .driver_data = WM1831 },
{ .name = "cs47l24", .driver_data = CS47L24 },
- { },
+ { }
};
MODULE_DEVICE_TABLE(spi, arizona_spi_ids);
diff --git a/drivers/mfd/cs40l50-spi.c b/drivers/mfd/cs40l50-spi.c
index c273bc98e7f8..902a6c324d83 100644
--- a/drivers/mfd/cs40l50-spi.c
+++ b/drivers/mfd/cs40l50-spi.c
@@ -41,7 +41,7 @@ static void cs40l50_spi_remove(struct spi_device *spi)
static const struct spi_device_id cs40l50_id_spi[] = {
{ .name = "cs40l50" },
- {}
+ { }
};
MODULE_DEVICE_TABLE(spi, cs40l50_id_spi);
diff --git a/drivers/mfd/da9052-spi.c b/drivers/mfd/da9052-spi.c
index 2a08481432e3..29cf2c17fde1 100644
--- a/drivers/mfd/da9052-spi.c
+++ b/drivers/mfd/da9052-spi.c
@@ -68,7 +68,7 @@ static const struct spi_device_id da9052_spi_id[] = {
{ .name = "da9053-ba", .driver_data = DA9053_BA },
{ .name = "da9053-bb", .driver_data = DA9053_BB },
{ .name = "da9053-bc", .driver_data = DA9053_BC },
- {}
+ { }
};
static struct spi_driver da9052_spi_driver = {
diff --git a/drivers/mfd/motorola-cpcap.c b/drivers/mfd/motorola-cpcap.c
index eab96299bc72..3d7aa4b0895f 100644
--- a/drivers/mfd/motorola-cpcap.c
+++ b/drivers/mfd/motorola-cpcap.c
@@ -202,9 +202,9 @@ static const struct of_device_id cpcap_of_match[] = {
MODULE_DEVICE_TABLE(of, cpcap_of_match);
static const struct spi_device_id cpcap_spi_ids[] = {
- { .name = "cpcap", },
- { .name = "6556002", },
- {},
+ { .name = "cpcap" },
+ { .name = "6556002" },
+ { }
};
MODULE_DEVICE_TABLE(spi, cpcap_spi_ids);
diff --git a/drivers/mfd/rsmu_spi.c b/drivers/mfd/rsmu_spi.c
index 8b2e7cb401b5..3fc1135c24be 100644
--- a/drivers/mfd/rsmu_spi.c
+++ b/drivers/mfd/rsmu_spi.c
@@ -244,7 +244,7 @@ static const struct spi_device_id rsmu_spi_id[] = {
{ .name = "8a34002", .driver_data = RSMU_CM },
{ .name = "82p33810", .driver_data = RSMU_SABRE },
{ .name = "82p33811", .driver_data = RSMU_SABRE },
- {}
+ { }
};
MODULE_DEVICE_TABLE(spi, rsmu_spi_id);
diff --git a/drivers/mfd/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c
index 11d4aed1d43f..3d7d896e11df 100644
--- a/drivers/mfd/sprd-sc27xx-spi.c
+++ b/drivers/mfd/sprd-sc27xx-spi.c
@@ -294,7 +294,7 @@ MODULE_DEVICE_TABLE(of, sprd_pmic_match);
static const struct spi_device_id sprd_pmic_spi_ids[] = {
{ .name = "sc2730", .driver_data = PMIC_TYPE_SC2730 },
{ .name = "sc2731", .driver_data = PMIC_TYPE_SC2731 },
- {},
+ { }
};
MODULE_DEVICE_TABLE(spi, sprd_pmic_spi_ids);
diff --git a/drivers/mfd/wm831x-spi.c b/drivers/mfd/wm831x-spi.c
index 4cdb6e0734c4..1e519fd9a9e1 100644
--- a/drivers/mfd/wm831x-spi.c
+++ b/drivers/mfd/wm831x-spi.c
@@ -84,7 +84,7 @@ static const struct spi_device_id wm831x_spi_ids[] = {
{ .name = "wm8321", .driver_data = WM8321 },
{ .name = "wm8325", .driver_data = WM8325 },
{ .name = "wm8326", .driver_data = WM8326 },
- { },
+ { }
};
static struct spi_driver wm831x_spi_driver = {
--
2.55.0.11.g153666a7d9bb