regulator: Drop unused i2c driver data

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 <laurent.pinchart@ideasonboard.com>
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/ce4f4851f16d8eea9cca632017d8c64c39ab2bcb.1782827697.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Uwe Kleine-König (The Capable Hub)
2026-06-30 16:01:07 +02:00
committed by Mark Brown
parent dc59e4fea9
commit 3ac69e3cb2
2 changed files with 5 additions and 5 deletions

View File

@@ -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);

View File

@@ -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);