]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
regulator: Unify usage of space and comma in platform_device_id arrays
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 27 May 2026 10:47:46 +0000 (12:47 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jun 2026 15:09:25 +0000 (16:09 +0100)
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>
Link: https://patch.msgid.link/a3a2736ebfcfa5a228dcebfbfefc14960dcce314.1779878004.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/hi6421-regulator.c
drivers/regulator/hi6421v530-regulator.c
drivers/regulator/hi6421v600-regulator.c
drivers/regulator/hi655x-regulator.c
drivers/regulator/max77620-regulator.c

index cd06030c3587dd7e0d8762c9733addc6290a5293..3373c4fdbddf3fc03d0f7b654125fb1a20bf9cf2 100644 (file)
@@ -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);
 
index 1822f5daf6ce8724d1a09b60bdb0f7ec0673b79f..7f4fc7175bbbb7df088ad98f2eb86b172a80288a 100644 (file)
@@ -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);
 
index e7c8bc10cf24ab4a102d8b40fd6de52e0d09ce3a..c42858c93b47eb333f95fce23ad402cef9b50bdb 100644 (file)
@@ -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);
 
index 1d8211f635b771a147c6fd4d271d5ab6ecee23fd..b2b454b6a18c7a47d2e80ff691e4a980532ef067 100644 (file)
@@ -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);
 
index 57c54472ec5b2930d27b61b49cac640f44baa9b8..5099c372eea58d0f2029e3f6650da121c493fbaf 100644 (file)
@@ -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);