summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-17 06:06:18 -0400
committerTakashi Iwai <tiwai@suse.de>2017-08-17 06:42:16 -0400
commit607b5d7f7a03c98705ba08c8f3a328ea5f678076 (patch)
treecb0827a88fb4e88356e499a978dec2c74cd2b8bd /sound/isa
parent05cb183e87931c722b9bc2e2e59243628efaab75 (diff)
ALSA: opl3sa2: constify pnp_device_id and pnp_card_device_id
*_device_id are not supposed to change at runtime. All functions working with *_device_id provided by <linux/pnp.h> work with const *_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/opl3sa2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/opl3sa2.c b/sound/isa/opl3sa2.c
index 4098e3e0353d..7cce4cd4a23b 100644
--- a/sound/isa/opl3sa2.c
+++ b/sound/isa/opl3sa2.c
@@ -141,7 +141,7 @@ struct snd_opl3sa2 {
141 141
142#ifdef CONFIG_PNP 142#ifdef CONFIG_PNP
143 143
144static struct pnp_device_id snd_opl3sa2_pnpbiosids[] = { 144static const struct pnp_device_id snd_opl3sa2_pnpbiosids[] = {
145 { .id = "YMH0021" }, 145 { .id = "YMH0021" },
146 { .id = "NMX2210" }, /* Gateway Solo 2500 */ 146 { .id = "NMX2210" }, /* Gateway Solo 2500 */
147 { .id = "" } /* end */ 147 { .id = "" } /* end */
@@ -149,7 +149,7 @@ static struct pnp_device_id snd_opl3sa2_pnpbiosids[] = {
149 149
150MODULE_DEVICE_TABLE(pnp, snd_opl3sa2_pnpbiosids); 150MODULE_DEVICE_TABLE(pnp, snd_opl3sa2_pnpbiosids);
151 151
152static struct pnp_card_device_id snd_opl3sa2_pnpids[] = { 152static const struct pnp_card_device_id snd_opl3sa2_pnpids[] = {
153 /* Yamaha YMF719E-S (Genius Sound Maker 3DX) */ 153 /* Yamaha YMF719E-S (Genius Sound Maker 3DX) */
154 { .id = "YMH0020", .devs = { { "YMH0021" } } }, 154 { .id = "YMH0020", .devs = { { "YMH0021" } } },
155 /* Yamaha OPL3-SA3 (integrated on Intel's Pentium II AL440LX motherboard) */ 155 /* Yamaha OPL3-SA3 (integrated on Intel's Pentium II AL440LX motherboard) */