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

ALSA: cmi8330: 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
06891ec6 1d906e85

+1 -1
+1 -1
sound/isa/cmi8330.c
··· 182 182 183 183 #ifdef CONFIG_PNP 184 184 185 - static struct pnp_card_device_id snd_cmi8330_pnpids[] = { 185 + static const struct pnp_card_device_id snd_cmi8330_pnpids[] = { 186 186 { .id = "CMI0001", .devs = { { "@X@0001" }, { "@@@0001" }, { "@H@0001" }, { "A@@0001" } } }, 187 187 { .id = "CMI0001", .devs = { { "@@@0001" }, { "@X@0001" }, { "@H@0001" } } }, 188 188 { .id = "" }