Skip to content

Commit 0eb1736

Browse files
ukleinekbroonie
authored andcommitted
regulator: Unify usage of space and comma in platform_device_id arrays
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>
1 parent d350283 commit 0eb1736

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

drivers/regulator/hi6421-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ static int hi6421_regulator_probe(struct platform_device *pdev)
571571

572572
static const struct platform_device_id hi6421_regulator_table[] = {
573573
{ .name = "hi6421-regulator" },
574-
{},
574+
{ }
575575
};
576576
MODULE_DEVICE_TABLE(platform, hi6421_regulator_table);
577577

drivers/regulator/hi6421v530-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static int hi6421v530_regulator_probe(struct platform_device *pdev)
187187

188188
static const struct platform_device_id hi6421v530_regulator_table[] = {
189189
{ .name = "hi6421v530-regulator" },
190-
{},
190+
{ }
191191
};
192192
MODULE_DEVICE_TABLE(platform, hi6421v530_regulator_table);
193193

drivers/regulator/hi6421v600-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static int hi6421_spmi_regulator_probe(struct platform_device *pdev)
276276

277277
static const struct platform_device_id hi6421_spmi_regulator_table[] = {
278278
{ .name = "hi6421v600-regulator" },
279-
{},
279+
{ }
280280
};
281281
MODULE_DEVICE_TABLE(platform, hi6421_spmi_regulator_table);
282282

drivers/regulator/hi655x-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static int hi655x_regulator_probe(struct platform_device *pdev)
198198

199199
static const struct platform_device_id hi655x_regulator_table[] = {
200200
{ .name = "hi655x-regulator" },
201-
{},
201+
{ }
202202
};
203203
MODULE_DEVICE_TABLE(platform, hi655x_regulator_table);
204204

drivers/regulator/max77620-regulator.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -902,10 +902,10 @@ static const struct dev_pm_ops max77620_regulator_pm_ops = {
902902
};
903903

904904
static const struct platform_device_id max77620_regulator_devtype[] = {
905-
{ .name = "max77620-pmic", },
906-
{ .name = "max20024-pmic", },
907-
{ .name = "max77663-pmic", },
908-
{},
905+
{ .name = "max77620-pmic" },
906+
{ .name = "max20024-pmic" },
907+
{ .name = "max77663-pmic" },
908+
{ }
909909
};
910910
MODULE_DEVICE_TABLE(platform, max77620_regulator_devtype);
911911

0 commit comments

Comments
 (0)