From fcd4ccebc0c1b24b52c6d282c4a503af988e3d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= Date: Tue, 9 Jun 2026 18:46:10 +0200 Subject: [PATCH] ALSA: Improve style of pnp_device_id array terminators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) Link: https://patch.msgid.link/47ae32220446ec1869898cf5e4b75ec94c32dfdf.1781023479.git.u.kleine-koenig@baylibre.com Signed-off-by: Takashi Iwai --- sound/drivers/mpu401/mpu401.c | 2 +- sound/isa/cs423x/cs4236.c | 2 +- sound/isa/es18xx.c | 2 +- sound/isa/opl3sa2.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/drivers/mpu401/mpu401.c b/sound/drivers/mpu401/mpu401.c index b615a310c79a..c217c427bf1e 100644 --- a/sound/drivers/mpu401/mpu401.c +++ b/sound/drivers/mpu401/mpu401.c @@ -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); diff --git a/sound/isa/cs423x/cs4236.c b/sound/isa/cs423x/cs4236.c index 238065ffa1d2..ecce31b348b0 100644 --- a/sound/isa/cs423x/cs4236.c +++ b/sound/isa/cs423x/cs4236.c @@ -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); diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 1a02da1679d0..3cadbf7cf238 100644 --- a/sound/isa/es18xx.c +++ b/sound/isa/es18xx.c @@ -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); diff --git a/sound/isa/opl3sa2.c b/sound/isa/opl3sa2.c index 88eada933a1f..66b1e361c101 100644 --- a/sound/isa/opl3sa2.c +++ b/sound/isa/opl3sa2.c @@ -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);