Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: atmel - Drop explicit initialization of struct i2c_device_id::driver_data to 0

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>

authored by

Uwe Kleine-König and committed by
Herbert Xu
d86ad391 7bfdfd83

+3 -3
+1 -1
drivers/crypto/atmel-ecc.c
··· 379 379 #endif 380 380 381 381 static const struct i2c_device_id atmel_ecc_id[] = { 382 - { "atecc508a", 0 }, 382 + { "atecc508a" }, 383 383 { } 384 384 }; 385 385 MODULE_DEVICE_TABLE(i2c, atmel_ecc_id);
+2 -2
drivers/crypto/atmel-sha204a.c
··· 202 202 MODULE_DEVICE_TABLE(of, atmel_sha204a_dt_ids); 203 203 204 204 static const struct i2c_device_id atmel_sha204a_id[] = { 205 - { "atsha204", 0 }, 206 - { "atsha204a", 0 }, 205 + { "atsha204" }, 206 + { "atsha204a" }, 207 207 { /* sentinel */ } 208 208 }; 209 209 MODULE_DEVICE_TABLE(i2c, atmel_sha204a_id);