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

ALSA: es18xx: constify pnp_device_id and pnp_card_device_id

*_device_id are not supposed to change at runtime. All functions
working with *_device_id provided by <linux/pnp.h> work with
const *_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
05cb183e 1491c68a

+2 -2
+2 -2
sound/isa/es18xx.c
··· 2017 2017 static int pnp_registered; 2018 2018 static int pnpc_registered; 2019 2019 2020 - static struct pnp_device_id snd_audiodrive_pnpbiosids[] = { 2020 + static const struct pnp_device_id snd_audiodrive_pnpbiosids[] = { 2021 2021 { .id = "ESS1869" }, 2022 2022 { .id = "ESS1879" }, 2023 2023 { .id = "" } /* end */ ··· 2062 2062 return 0; 2063 2063 } 2064 2064 2065 - static struct pnp_card_device_id snd_audiodrive_pnpids[] = { 2065 + static const struct pnp_card_device_id snd_audiodrive_pnpids[] = { 2066 2066 /* ESS 1868 (integrated on Compaq dual P-Pro motherboard and Genius 18PnP 3D) */ 2067 2067 { .id = "ESS1868", .devs = { { "ESS1868" }, { "ESS0000" } } }, 2068 2068 /* ESS 1868 (integrated on Maxisound Cards) */