Skip to content

Commit

Permalink
ALSA: Drop explicit initialization of struct i2c_device_id::driver_da…
Browse files Browse the repository at this point in the history
…ta 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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Uwe Kleine-König authored and tiwai committed Sep 20, 2024
1 parent 49f5ee9 commit bf36793
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sound/aoa/codecs/onyx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ static void onyx_i2c_remove(struct i2c_client *client)
}

static const struct i2c_device_id onyx_i2c_id[] = {
{ "MAC,pcm3052", 0 },
{ "MAC,pcm3052" },
{ }
};
MODULE_DEVICE_TABLE(i2c,onyx_i2c_id);
Expand Down
2 changes: 1 addition & 1 deletion sound/aoa/codecs/tas.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ static void tas_i2c_remove(struct i2c_client *client)
}

static const struct i2c_device_id tas_i2c_id[] = {
{ "MAC,tas3004", 0 },
{ "MAC,tas3004" },
{ }
};
MODULE_DEVICE_TABLE(i2c,tas_i2c_id);
Expand Down
2 changes: 1 addition & 1 deletion sound/pci/hda/cs35l41_hda_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void cs35l41_hda_i2c_remove(struct i2c_client *clt)
}

static const struct i2c_device_id cs35l41_hda_i2c_id[] = {
{ "cs35l41-hda", 0 },
{ "cs35l41-hda" },
{}
};

Expand Down
2 changes: 1 addition & 1 deletion sound/pci/hda/tas2781_hda_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ static const struct dev_pm_ops tas2781_hda_pm_ops = {
};

static const struct i2c_device_id tas2781_hda_i2c_id[] = {
{ "tas2781-hda", 0 },
{ "tas2781-hda" },
{}
};

Expand Down

0 comments on commit bf36793

Please sign in to comment.