mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@baylibre.com>
To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH v1 3/3] regulator: Unify usage of space and comma in platform_device_id arrays
Date: Wed, 27 May 2026 12:47:46 +0200	[thread overview]
Message-ID: <a3a2736ebfcfa5a228dcebfbfefc14960dcce314.1779878004.git.u.kleine-koenig@baylibre.com> (raw)
In-Reply-To: <cover.1779878004.git.u.kleine-koenig@baylibre.com>

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@baylibre.com>
---
 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


  parent reply	other threads:[~2026-05-27 10:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-27 10:47 [PATCH v1 0/3] regulator: Use named initializers for " Uwe Kleine-König (The Capable Hub)
2026-05-27 10:47 ` [PATCH v1 1/3] regulator: Drop unused assignment of platform_device_id driver data Uwe Kleine-König (The Capable Hub)
2026-05-27 10:47 ` [PATCH v1 2/3] regulator: Use named initializers for platform_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-05-27 18:21   ` Karel Balej
2026-05-29  8:02   ` Matti Vaittinen
2026-05-27 10:47 ` Uwe Kleine-König (The Capable Hub) [this message]
2026-06-02 15:09 ` [PATCH v1 0/3] " Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a3a2736ebfcfa5a228dcebfbfefc14960dcce314.1779878004.git.u.kleine-koenig@baylibre.com \
    --to=u.kleine-koenig@baylibre.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®