mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
crypto: atmel-ecc - 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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
42a58f08b7
commit
59f61b2424
|
|
@ -376,8 +376,8 @@ static const struct of_device_id atmel_ecc_dt_ids[] = {
|
|||
MODULE_DEVICE_TABLE(of, atmel_ecc_dt_ids);
|
||||
|
||||
static const struct i2c_device_id atmel_ecc_id[] = {
|
||||
{ "atecc508a" },
|
||||
{ "atecc608b" },
|
||||
{ .name = "atecc508a" },
|
||||
{ .name = "atecc608b" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, atmel_ecc_id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user