diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 15:36:28 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 12:42:29 +0200 |
commit | e6a76e2fdabf703e41a82fdb39a960f506a4c467 (patch) | |
tree | 4487325ef45844bbfab99ab98b6cd48b2d2b5f9e /sound/isa | |
parent | 529d25761173cba9e5cd8e1629c6477a141fce6d (diff) | |
download | linux-stable-e6a76e2fdabf703e41a82fdb39a960f506a4c467.tar.gz linux-stable-e6a76e2fdabf703e41a82fdb39a960f506a4c467.tar.bz2 linux-stable-e6a76e2fdabf703e41a82fdb39a960f506a4c467.zip |
ALSA: sb16: 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/sb/sb16.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/sb/sb16.c b/sound/isa/sb/sb16.c index 917a93d696c3..8f9ebeb998f6 100644 --- a/sound/isa/sb/sb16.c +++ b/sound/isa/sb/sb16.c @@ -145,7 +145,7 @@ struct snd_card_sb16 { #ifdef CONFIG_PNP -static struct pnp_card_device_id snd_sb16_pnpids[] = { +static const struct pnp_card_device_id snd_sb16_pnpids[] = { #ifndef SNDRV_SBAWE /* Sound Blaster 16 PnP */ { .id = "CTL0024", .devs = { { "CTL0031" } } }, |