mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 13:23:02 -04:00
regulator: Improve style of i2c_device_id arrays
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) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/221a2e634f6bbf9638b906470ffb1b2b413e0a5a.1782827697.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
8e74b2db58
commit
2924fa8381
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ static int isl6271a_probe(struct i2c_client *i2c)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id isl6271a_id[] = {
|
||||
{ .name = "isl6271a", },
|
||||
{ .name = "isl6271a" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
{ },
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user