diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-09-20 18:10:08 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-09-20 18:44:52 +0300 |
commit | bf36793fa260cb68cc817f311f1f683788261796 (patch) | |
tree | 27cd289c8428a6073c9553a20fdee6c90fbdecea /sound/pci | |
parent | 49f5ee951f11f4d6a124f00f71b2590507811a55 (diff) | |
download | linux-bf36793fa260cb68cc817f311f1f683788261796.tar.xz |
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 <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20240920151009.499188-2-u.kleine-koenig@baylibre.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/cs35l41_hda_i2c.c | 2 | ||||
-rw-r--r-- | sound/pci/hda/tas2781_hda_i2c.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/cs35l41_hda_i2c.c b/sound/pci/hda/cs35l41_hda_i2c.c index 603e9bff3a71..bb84740c8520 100644 --- a/sound/pci/hda/cs35l41_hda_i2c.c +++ b/sound/pci/hda/cs35l41_hda_i2c.c @@ -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" }, {} }; diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index f58f434e7110..4b9dc84ce6bb 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -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" }, {} }; |