Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arvind Yadav and committed by
Takashi Iwai
e6a76e2f 529d2576

+1 -1
+1 -1
sound/isa/sb/sb16.c
··· 145 145 146 146 #ifdef CONFIG_PNP 147 147 148 - static struct pnp_card_device_id snd_sb16_pnpids[] = { 148 + static const struct pnp_card_device_id snd_sb16_pnpids[] = { 149 149 #ifndef SNDRV_SBAWE 150 150 /* Sound Blaster 16 PnP */ 151 151 { .id = "CTL0024", .devs = { { "CTL0031" } } },