mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
platform/x86: x86-android-tablets: Use named initializers for struct i2c_device_id
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition. This patch doesn't modify the compiled array, only its representation in source form benefits. The former was confirmed with x86 and arm64 builds. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/20260519154040.1594878-2-u.kleine-koenig@baylibre.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
parent
fbab18baaf
commit
84b27a3cdd
|
|
@ -242,7 +242,7 @@ static int atla10_ec_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id atla10_ec_id_table[] = {
|
||||
{ "vexia_atla10_ec" },
|
||||
{ .name = "vexia_atla10_ec" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, atla10_ec_id_table);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user