From 2924fa8381ee20d26fad75d749af71b845f57749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= Date: Tue, 30 Jun 2026 16:01:09 +0200 Subject: [PATCH] regulator: Improve style of i2c_device_id arrays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The two previous patches did some style improvements while adapting the i2c_device_id arrays. Adapt all the remaining regulator drivers to use the same style. That is: - Use a comma after a initialisation value unless the closing } is in the same line. - Don't use a comma after the list terminator. - Use a space after the opening { and one before the closing }; a single space for an empty pair. Signed-off-by: Uwe Kleine-König (The Capable Hub) Link: https://patch.msgid.link/221a2e634f6bbf9638b906470ffb1b2b413e0a5a.1782827697.git.u.kleine-koenig@baylibre.com Signed-off-by: Mark Brown --- drivers/regulator/act8865-regulator.c | 2 +- drivers/regulator/adp5055-regulator.c | 4 ++-- drivers/regulator/aw37503-regulator.c | 4 ++-- drivers/regulator/isl6271a-regulator.c | 2 +- drivers/regulator/max8973-regulator.c | 6 +++--- drivers/regulator/tps51632-regulator.c | 4 ++-- drivers/regulator/tps62360-regulator.c | 10 +++++----- drivers/regulator/tps65023-regulator.c | 6 +++--- drivers/regulator/tps65132-regulator.c | 4 ++-- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c index b2a6ddc6f56d..882b6e58e911 100644 --- a/drivers/regulator/act8865-regulator.c +++ b/drivers/regulator/act8865-regulator.c @@ -780,7 +780,7 @@ static const struct i2c_device_id act8865_ids[] = { { .name = "act8600", .driver_data = ACT8600 }, { .name = "act8846", .driver_data = ACT8846 }, { .name = "act8865", .driver_data = ACT8865 }, - { }, + { } }; MODULE_DEVICE_TABLE(i2c, act8865_ids); diff --git a/drivers/regulator/adp5055-regulator.c b/drivers/regulator/adp5055-regulator.c index 4b004a6b2f84..bba138360df1 100644 --- a/drivers/regulator/adp5055-regulator.c +++ b/drivers/regulator/adp5055-regulator.c @@ -404,8 +404,8 @@ static const struct of_device_id adp5055_of_match[] = { MODULE_DEVICE_TABLE(of, adp5055_of_match); static const struct i2c_device_id adp5055_ids[] = { - { .name = "adp5055"}, - { }, + { .name = "adp5055" }, + { } }; MODULE_DEVICE_TABLE(i2c, adp5055_ids); diff --git a/drivers/regulator/aw37503-regulator.c b/drivers/regulator/aw37503-regulator.c index a5ff6dfd29b5..ca5f2a14c28c 100644 --- a/drivers/regulator/aw37503-regulator.c +++ b/drivers/regulator/aw37503-regulator.c @@ -212,8 +212,8 @@ static int aw37503_probe(struct i2c_client *client) } static const struct i2c_device_id aw37503_id[] = { - {.name = "aw37503",}, - {}, + { .name = "aw37503" }, + { } }; MODULE_DEVICE_TABLE(i2c, aw37503_id); diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c index 7883cd160727..868f2b823a10 100644 --- a/drivers/regulator/isl6271a-regulator.c +++ b/drivers/regulator/isl6271a-regulator.c @@ -138,7 +138,7 @@ static int isl6271a_probe(struct i2c_client *i2c) } static const struct i2c_device_id isl6271a_id[] = { - { .name = "isl6271a", }, + { .name = "isl6271a" }, { } }; diff --git a/drivers/regulator/max8973-regulator.c b/drivers/regulator/max8973-regulator.c index f68caa07f546..95062032dc7e 100644 --- a/drivers/regulator/max8973-regulator.c +++ b/drivers/regulator/max8973-regulator.c @@ -780,9 +780,9 @@ static int max8973_probe(struct i2c_client *client) } static const struct i2c_device_id max8973_id[] = { - {.name = "max8973", .driver_data = MAX8973}, - {.name = "max77621", .driver_data = MAX77621}, - {}, + { .name = "max8973", .driver_data = MAX8973 }, + { .name = "max77621", .driver_data = MAX77621 }, + { } }; MODULE_DEVICE_TABLE(i2c, max8973_id); diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps51632-regulator.c index 3a384bf9d2c5..8459b49ec26e 100644 --- a/drivers/regulator/tps51632-regulator.c +++ b/drivers/regulator/tps51632-regulator.c @@ -331,8 +331,8 @@ static int tps51632_probe(struct i2c_client *client) } static const struct i2c_device_id tps51632_id[] = { - {.name = "tps51632",}, - {}, + { .name = "tps51632" }, + { } }; MODULE_DEVICE_TABLE(i2c, tps51632_id); diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c index be6a6702cbfa..00f19082c1da 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c @@ -476,11 +476,11 @@ static void tps62360_shutdown(struct i2c_client *client) } static const struct i2c_device_id tps62360_id[] = { - {.name = "tps62360", .driver_data = TPS62360}, - {.name = "tps62361", .driver_data = TPS62361}, - {.name = "tps62362", .driver_data = TPS62362}, - {.name = "tps62363", .driver_data = TPS62363}, - {}, + { .name = "tps62360", .driver_data = TPS62360 }, + { .name = "tps62361", .driver_data = TPS62361 }, + { .name = "tps62362", .driver_data = TPS62362 }, + { .name = "tps62363", .driver_data = TPS62363 }, + { } }; MODULE_DEVICE_TABLE(i2c, tps62360_id); diff --git a/drivers/regulator/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c index 3334b5b7d907..5a2fc57cddf6 100644 --- a/drivers/regulator/tps65023-regulator.c +++ b/drivers/regulator/tps65023-regulator.c @@ -319,13 +319,13 @@ MODULE_DEVICE_TABLE(of, tps65023_of_match); static const struct i2c_device_id tps_65023_id[] = { { .name = "tps65023", - .driver_data = (kernel_ulong_t)&tps65023_drv_data + .driver_data = (kernel_ulong_t)&tps65023_drv_data, }, { .name = "tps65021", - .driver_data = (kernel_ulong_t)&tps65021_drv_data + .driver_data = (kernel_ulong_t)&tps65021_drv_data, }, { .name = "tps65020", - .driver_data = (kernel_ulong_t)&tps65020_drv_data + .driver_data = (kernel_ulong_t)&tps65020_drv_data, }, { }, }; diff --git a/drivers/regulator/tps65132-regulator.c b/drivers/regulator/tps65132-regulator.c index 9c2f0dd42613..fecda3fd8ebc 100644 --- a/drivers/regulator/tps65132-regulator.c +++ b/drivers/regulator/tps65132-regulator.c @@ -262,8 +262,8 @@ static int tps65132_probe(struct i2c_client *client) } static const struct i2c_device_id tps65132_id[] = { - {.name = "tps65132",}, - {}, + { .name = "tps65132" }, + { } }; MODULE_DEVICE_TABLE(i2c, tps65132_id);