aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorArvind Yadav2017-08-17 15:36:25 +0530
committerTakashi Iwai2017-08-17 12:42:25 +0200
commit45fbe60734dab264b1ac33e7eeacff681e7d2eb4 (patch)
tree54f7745267fa5a76ae56803116caec7b49e9e595 /sound
parent4f624a1cb755de31e532883681554271afc92f7f (diff)
ALSA: gus: constify pnp_card_device_id
pnp_card_device_id are not supposed to change at runtime. All functions working with pnp_card_device_id provided by <linux/pnp.h> work with const pnp_card_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')
-rw-r--r--sound/isa/gus/interwave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/gus/interwave.c b/sound/isa/gus/interwave.c
index 0687b7ef3e53..a6fc26bf0af2 100644
--- a/sound/isa/gus/interwave.c
+++ b/sound/isa/gus/interwave.c
@@ -136,7 +136,7 @@ struct snd_interwave {
static int isa_registered;
static int pnp_registered;
-static struct pnp_card_device_id snd_interwave_pnpids[] = {
+static const struct pnp_card_device_id snd_interwave_pnpids[] = {
#ifndef SNDRV_STB
/* Gravis UltraSound Plug & Play */
{ .id = "GRV0001", .devs = { { .id = "GRV0000" } } },