powerpc/476: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Sun, 4 Aug 2024 11:20:31 +0000 (13:20 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 7 Aug 2024 12:49:12 +0000 (22:49 +1000)
This driver doesn'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>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240804112032.3628645-2-u.kleine-koenig@baylibre.com
arch/powerpc/platforms/44x/ppc476.c

index 164cbcd4588e4c3b8b7e34f6a482675e59fe4c79..e7b7bdaad341f1f070a704f39e45b2638e8cdccb 100644 (file)
@@ -95,7 +95,7 @@ static int avr_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id avr_id[] = {
-       { "akebono-avr", 0 },
+       { "akebono-avr" },
        { }
 };