]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: atmel - Drop explicit initialization of struct i2c_device_id::driver_data...
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 18 Sep 2024 12:31:52 +0000 (14:31 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:05 +0000 (13:22 +0800)
These drivers don't use the driver_data member of struct i2c_device_id,
so don't explicitly initialize this member.

This prepares putting driver_data in an anonymous union which requires
either no initialization or named designators. But it's also a nice
cleanup on its own.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-ecc.c
drivers/crypto/atmel-sha204a.c

index 590ea984c6220a64a1a2dd485aec8a3280f90e2e..0d48e64d28b11326b7265949e6bd2eaaa41f9cef 100644 (file)
@@ -379,7 +379,7 @@ MODULE_DEVICE_TABLE(of, atmel_ecc_dt_ids);
 #endif
 
 static const struct i2c_device_id atmel_ecc_id[] = {
-       { "atecc508a", 0 },
+       { "atecc508a" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, atmel_ecc_id);
index a02d496f4c410f54cecf752b6e8c2cefa41d773e..75bebec2c757bf9b82e67f216df661923e3549c5 100644 (file)
@@ -202,8 +202,8 @@ static const struct of_device_id atmel_sha204a_dt_ids[] __maybe_unused = {
 MODULE_DEVICE_TABLE(of, atmel_sha204a_dt_ids);
 
 static const struct i2c_device_id atmel_sha204a_id[] = {
-       { "atsha204", 0 },
-       { "atsha204a", 0 },
+       { "atsha204" },
+       { "atsha204a" },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(i2c, atmel_sha204a_id);