]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 20 Sep 2024 15:10:08 +0000 (17:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Sep 2024 15:44:52 +0000 (17:44 +0200)
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>
sound/aoa/codecs/onyx.c
sound/aoa/codecs/tas.c
sound/pci/hda/cs35l41_hda_i2c.c
sound/pci/hda/tas2781_hda_i2c.c

index e90e03bb0dc09fc19119963b08d2007e2982fcac..ac347a14f282cf9c1fa1c39bf69c2959192ad491 100644 (file)
@@ -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);
index be9822ebf9f8ace734251b96d07af6b4a0b83f41..804b2ebbe28fe8565dca87529695e6cabf824f3f 100644 (file)
@@ -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);
index 603e9bff3a71dc138529dc4ae8dfe1a7a16150dc..bb84740c852076a7cd589c48e890177971f53b43 100644 (file)
@@ -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" },
        {}
 };
 
index f58f434e7110ee425594b3bc41163019e409f941..4b9dc84ce6bb7e103dcbd34b09dfa4dad8180861 100644 (file)
@@ -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" },
        {}
 };