]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: Improve style of pnp_device_id array terminators
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 9 Jun 2026 16:46:10 +0000 (18:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Jun 2026 07:25:03 +0000 (09:25 +0200)
To match how device-id array terminators look like for other device
types drop `.id = ""` from it and let the compiler care for zeroing the
entry.

There are no changes in the compiled drivers, only the source looks
nicer.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/47ae32220446ec1869898cf5e4b75ec94c32dfdf.1781023479.git.u.kleine-koenig@baylibre.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/mpu401/mpu401.c
sound/isa/cs423x/cs4236.c
sound/isa/es18xx.c
sound/isa/opl3sa2.c

index b615a310c79ae0b63c09aea2b197e38760131c9a..c217c427bf1e0ee81b226684a6273207efa701a6 100644 (file)
@@ -123,7 +123,7 @@ static struct platform_driver snd_mpu401_driver = {
 
 static const struct pnp_device_id snd_mpu401_pnpids[] = {
        { .id = "PNPb006" },
-       { .id = "" }
+       { }
 };
 
 MODULE_DEVICE_TABLE(pnp, snd_mpu401_pnpids);
index 238065ffa1d261412675a419bfd0a9d19d2018fd..ecce31b348b021950ef13c553373e333fff81f42 100644 (file)
@@ -94,7 +94,7 @@ static const struct pnp_device_id snd_cs423x_pnpbiosids[] = {
        /* Guillemot Turtlebeach something appears to be cs4232 compatible
         * (untested) */
        { .id = "GIM0100" },
-       { .id = "" }
+       { }
 };
 MODULE_DEVICE_TABLE(pnp, snd_cs423x_pnpbiosids);
 
index 1a02da1679d0513e01b63f067465fc3f2c7609ff..3cadbf7cf2387eaae21d1af2efccd4b56d37e9e0 100644 (file)
@@ -1935,7 +1935,7 @@ static int pnpc_registered __ro_after_init;
 static const struct pnp_device_id snd_audiodrive_pnpbiosids[] = {
        { .id = "ESS1869" },
        { .id = "ESS1879" },
-       { .id = "" }            /* end */
+       { }                     /* end */
 };
 
 MODULE_DEVICE_TABLE(pnp, snd_audiodrive_pnpbiosids);
index 88eada933a1f9fc77949e9c5cfec5b8b4b2daed3..66b1e361c101290ded9cf96e110e70cd362edb0b 100644 (file)
@@ -125,7 +125,7 @@ struct snd_opl3sa2 {
 static const struct pnp_device_id snd_opl3sa2_pnpbiosids[] = {
        { .id = "YMH0021" },
        { .id = "NMX2210" },    /* Gateway Solo 2500 */
-       { .id = "" }            /* end */
+       { }                     /* end */
 };
 
 MODULE_DEVICE_TABLE(pnp, snd_opl3sa2_pnpbiosids);