Skip to content

Commit d2eb433

Browse files
ukleinektiwai
authored andcommitted
ALSA: ppc: keywest: Drop explicit initialization of struct i2c_device_id::driver_data to 0
The 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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent fefbbdf commit d2eb433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/ppc/keywest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ static void keywest_remove(struct i2c_client *client)
8080

8181

8282
static const struct i2c_device_id keywest_i2c_id[] = {
83-
{ "MAC,tas3004", 0 }, /* instantiated by i2c-powermac */
84-
{ "keywest", 0 }, /* instantiated by us if needed */
83+
{ "MAC,tas3004" }, /* instantiated by i2c-powermac */
84+
{ "keywest" }, /* instantiated by us if needed */
8585
{ }
8686
};
8787
MODULE_DEVICE_TABLE(i2c, keywest_i2c_id);

0 commit comments

Comments
 (0)