diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 06:06:29 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 06:42:31 -0400 |
commit | 05e20b265c9068d2f5871e3fcddc366d5f6feecb (patch) | |
tree | 39f51942882e3b9ee8747f327d0053c975681597 | |
parent | e6a76e2fdabf703e41a82fdb39a960f506a4c467 (diff) |
ALSA: sscape: 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>
-rw-r--r-- | sound/isa/sscape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/sscape.c b/sound/isa/sscape.c index 1cd2908e4f12..733adee5afbf 100644 --- a/sound/isa/sscape.c +++ b/sound/isa/sscape.c | |||
@@ -88,7 +88,7 @@ MODULE_PARM_DESC(joystick, "Enable gameport."); | |||
88 | static int isa_registered; | 88 | static int isa_registered; |
89 | static int pnp_registered; | 89 | static int pnp_registered; |
90 | 90 | ||
91 | static struct pnp_card_device_id sscape_pnpids[] = { | 91 | static const struct pnp_card_device_id sscape_pnpids[] = { |
92 | { .id = "ENS3081", .devs = { { "ENS0000" } } }, /* Soundscape PnP */ | 92 | { .id = "ENS3081", .devs = { { "ENS0000" } } }, /* Soundscape PnP */ |
93 | { .id = "ENS4081", .devs = { { "ENS1011" } } }, /* VIVO90 */ | 93 | { .id = "ENS4081", .devs = { { "ENS1011" } } }, /* VIVO90 */ |
94 | { .id = "" } /* end */ | 94 | { .id = "" } /* end */ |