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

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>

authored by

Arvind Yadav and committed by
Takashi Iwai
05e20b26 e6a76e2f

+1 -1
+1 -1
sound/isa/sscape.c
··· 88 88 static int isa_registered; 89 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 92 { .id = "ENS3081", .devs = { { "ENS0000" } } }, /* Soundscape PnP */ 93 93 { .id = "ENS4081", .devs = { { "ENS1011" } } }, /* VIVO90 */ 94 94 { .id = "" } /* end */