[PATCH v1 3/3] regulator: Unify usage of space and comma in platform_device_id arrays
From: Uwe Kleine-König (The Capable Hub)
Date: Wed May 27 2026 - 06:52:26 EST
After converting all these arrays to use named initializers and fixing
coding style en passant, adapt the coding style also for those drivers that
already used named initializers before for consistency.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/regulator/hi6421-regulator.c | 2 +-
drivers/regulator/hi6421v530-regulator.c | 2 +-
drivers/regulator/hi6421v600-regulator.c | 2 +-
drivers/regulator/hi655x-regulator.c | 2 +-
drivers/regulator/max77620-regulator.c | 8 ++++----
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c
index cd06030c3587..3373c4fdbddf 100644
--- a/drivers/regulator/hi6421-regulator.c
+++ b/drivers/regulator/hi6421-regulator.c
@@ -571,7 +571,7 @@ static int hi6421_regulator_probe(struct platform_device *pdev)
static const struct platform_device_id hi6421_regulator_table[] = {
{ .name = "hi6421-regulator" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(platform, hi6421_regulator_table);
diff --git a/drivers/regulator/hi6421v530-regulator.c b/drivers/regulator/hi6421v530-regulator.c
index 1822f5daf6ce..7f4fc7175bbb 100644
--- a/drivers/regulator/hi6421v530-regulator.c
+++ b/drivers/regulator/hi6421v530-regulator.c
@@ -187,7 +187,7 @@ static int hi6421v530_regulator_probe(struct platform_device *pdev)
static const struct platform_device_id hi6421v530_regulator_table[] = {
{ .name = "hi6421v530-regulator" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(platform, hi6421v530_regulator_table);
diff --git a/drivers/regulator/hi6421v600-regulator.c b/drivers/regulator/hi6421v600-regulator.c
index e7c8bc10cf24..c42858c93b47 100644
--- a/drivers/regulator/hi6421v600-regulator.c
+++ b/drivers/regulator/hi6421v600-regulator.c
@@ -276,7 +276,7 @@ static int hi6421_spmi_regulator_probe(struct platform_device *pdev)
static const struct platform_device_id hi6421_spmi_regulator_table[] = {
{ .name = "hi6421v600-regulator" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(platform, hi6421_spmi_regulator_table);
diff --git a/drivers/regulator/hi655x-regulator.c b/drivers/regulator/hi655x-regulator.c
index 1d8211f635b7..b2b454b6a18c 100644
--- a/drivers/regulator/hi655x-regulator.c
+++ b/drivers/regulator/hi655x-regulator.c
@@ -198,7 +198,7 @@ static int hi655x_regulator_probe(struct platform_device *pdev)
static const struct platform_device_id hi655x_regulator_table[] = {
{ .name = "hi655x-regulator" },
- {},
+ { }
};
MODULE_DEVICE_TABLE(platform, hi655x_regulator_table);
diff --git a/drivers/regulator/max77620-regulator.c b/drivers/regulator/max77620-regulator.c
index 57c54472ec5b..5099c372eea5 100644
--- a/drivers/regulator/max77620-regulator.c
+++ b/drivers/regulator/max77620-regulator.c
@@ -902,10 +902,10 @@ static const struct dev_pm_ops max77620_regulator_pm_ops = {
};
static const struct platform_device_id max77620_regulator_devtype[] = {
- { .name = "max77620-pmic", },
- { .name = "max20024-pmic", },
- { .name = "max77663-pmic", },
- {},
+ { .name = "max77620-pmic" },
+ { .name = "max20024-pmic" },
+ { .name = "max77663-pmic" },
+ { }
};
MODULE_DEVICE_TABLE(platform, max77620_regulator_devtype);
--
2.47.3