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

ALSA: azt2320: 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
1d906e85 815cfec7

+1 -1
+1 -1
sound/isa/azt2320.c
··· 79 79 struct snd_wss *chip; 80 80 }; 81 81 82 - static struct pnp_card_device_id snd_azt2320_pnpids[] = { 82 + static const struct pnp_card_device_id snd_azt2320_pnpids[] = { 83 83 /* PRO16V */ 84 84 { .id = "AZT1008", .devs = { { "AZT1008" }, { "AZT2001" }, } }, 85 85 /* Aztech Sound Galaxy 16 */