Skip to content

Commit bf36793

Browse files
ukleinektiwai
authored andcommitted
ALSA: 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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 49f5ee9 commit bf36793

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sound/aoa/codecs/onyx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ static void onyx_i2c_remove(struct i2c_client *client)
10401040
}
10411041

10421042
static const struct i2c_device_id onyx_i2c_id[] = {
1043-
{ "MAC,pcm3052", 0 },
1043+
{ "MAC,pcm3052" },
10441044
{ }
10451045
};
10461046
MODULE_DEVICE_TABLE(i2c,onyx_i2c_id);

sound/aoa/codecs/tas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ static void tas_i2c_remove(struct i2c_client *client)
927927
}
928928

929929
static const struct i2c_device_id tas_i2c_id[] = {
930-
{ "MAC,tas3004", 0 },
930+
{ "MAC,tas3004" },
931931
{ }
932932
};
933933
MODULE_DEVICE_TABLE(i2c,tas_i2c_id);

sound/pci/hda/cs35l41_hda_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static void cs35l41_hda_i2c_remove(struct i2c_client *clt)
3939
}
4040

4141
static const struct i2c_device_id cs35l41_hda_i2c_id[] = {
42-
{ "cs35l41-hda", 0 },
42+
{ "cs35l41-hda" },
4343
{}
4444
};
4545

sound/pci/hda/tas2781_hda_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ static const struct dev_pm_ops tas2781_hda_pm_ops = {
951951
};
952952

953953
static const struct i2c_device_id tas2781_hda_i2c_id[] = {
954-
{ "tas2781-hda", 0 },
954+
{ "tas2781-hda" },
955955
{}
956956
};
957957

0 commit comments

Comments
 (0)