[PATCH v1 3/3] mfd: Unify style of spi_device_id arrays

From: Uwe Kleine-König (The Capable Hub)

Date: Thu Jul 02 2026 - 11:10:54 EST


The two previous commits adapted the style of some spi_device_id arrays.
Fix the remaining arrays to the same style, that is:

- no comma after the list terminator and after an initializer iff the
closing } is on the same line
- a single space in the list terminator

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/mfd/altera-a10sr.c | 2 +-
drivers/mfd/motorola-cpcap.c | 6 +++---
drivers/mfd/sprd-sc27xx-spi.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/mfd/altera-a10sr.c b/drivers/mfd/altera-a10sr.c
index d53e433ab5c1..9c0262228655 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/motorola-cpcap.c b/drivers/mfd/motorola-cpcap.c
index feeccb2c6655..4ed8704c985a 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/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c
index aa052f646623..8c4af2f7ece2 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);

--
2.55.0.11.g153666a7d9bb