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

ALSA: als100: 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
815cfec7 287b546c

+1 -1
+1 -1
sound/isa/als100.c
··· 79 79 struct snd_sb *chip; 80 80 }; 81 81 82 - static struct pnp_card_device_id snd_als100_pnpids[] = { 82 + static const struct pnp_card_device_id snd_als100_pnpids[] = { 83 83 /* DT197A30 */ 84 84 { .id = "RWB1688", 85 85 .devs = { { "@@@0001" }, { "@X@0001" }, { "@H@0001" } },