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

ALSA: ad1816a: 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
287b546c 607b5d7f

+1 -1
+1 -1
sound/isa/ad1816a/ad1816a.c
··· 63 63 module_param_array(clockfreq, int, NULL, 0444); 64 64 MODULE_PARM_DESC(clockfreq, "Clock frequency for ad1816a driver (default = 0)."); 65 65 66 - static struct pnp_card_device_id snd_ad1816a_pnpids[] = { 66 + static const struct pnp_card_device_id snd_ad1816a_pnpids[] = { 67 67 /* Analog Devices AD1815 */ 68 68 { .id = "ADS7150", .devs = { { .id = "ADS7150" }, { .id = "ADS7151" } } }, 69 69 /* Analog Device AD1816? */