From 3ac69e3cb2880042a488fea68eddd2835499582b 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:07 +0200 Subject: [PATCH] regulator: Drop unused i2c driver data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The two drivers explicitly set .driver_data to zero but don't use this value. So drop the explicit assignment. While touching these arrays, unify usage of whitespace and commas, and use named initializers. Reviewed-by: Laurent Pinchart Signed-off-by: Uwe Kleine-König (The Capable Hub) Link: https://patch.msgid.link/ce4f4851f16d8eea9cca632017d8c64c39ab2bcb.1782827697.git.u.kleine-koenig@baylibre.com Signed-off-by: Mark Brown --- drivers/regulator/max77675-regulator.c | 2 +- drivers/regulator/pf530x-regulator.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/max77675-regulator.c b/drivers/regulator/max77675-regulator.c index af3eb7174875..ebea08ddf4b8 100644 --- a/drivers/regulator/max77675-regulator.c +++ b/drivers/regulator/max77675-regulator.c @@ -1029,7 +1029,7 @@ static int max77675_regulator_probe(struct i2c_client *client) } static const struct i2c_device_id max77675_i2c_id[] = { - { "max77675", 0 }, + { .name = "max77675" }, { } }; MODULE_DEVICE_TABLE(i2c, max77675_i2c_id); diff --git a/drivers/regulator/pf530x-regulator.c b/drivers/regulator/pf530x-regulator.c index f789c4b6a499..8ad1cbbd7a8c 100644 --- a/drivers/regulator/pf530x-regulator.c +++ b/drivers/regulator/pf530x-regulator.c @@ -353,10 +353,10 @@ static const struct of_device_id pf530x_dt_ids[] = { MODULE_DEVICE_TABLE(of, pf530x_dt_ids); static const struct i2c_device_id pf530x_i2c_id[] = { - { "pf5300", 0 }, - { "pf5301", 0 }, - { "pf5302", 0 }, - {}, + { .name = "pf5300" }, + { .name = "pf5301" }, + { .name = "pf5302" }, + { } }; MODULE_DEVICE_TABLE(i2c, pf530x_i2c_id);