diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 12:06:29 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 12:42:31 +0200 |
commit | 05e20b265c9068d2f5871e3fcddc366d5f6feecb (patch) | |
tree | 39f51942882e3b9ee8747f327d0053c975681597 /sound/isa | |
parent | ALSA: sb16: constify pnp_card_device_id (diff) | |
download | linux-05e20b265c9068d2f5871e3fcddc366d5f6feecb.tar.xz linux-05e20b265c9068d2f5871e3fcddc366d5f6feecb.zip |
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>
Diffstat (limited to 'sound/isa')
-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."); static int isa_registered; static int pnp_registered; -static struct pnp_card_device_id sscape_pnpids[] = { +static const struct pnp_card_device_id sscape_pnpids[] = { { .id = "ENS3081", .devs = { { "ENS0000" } } }, /* Soundscape PnP */ { .id = "ENS4081", .devs = { { "ENS1011" } } }, /* VIVO90 */ { .id = "" } /* end */ |