diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 06:06:17 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 06:42:15 -0400 |
commit | 05cb183e87931c722b9bc2e2e59243628efaab75 (patch) | |
tree | b72c8794c35b8c74c3dba1d5bcfcb5b0abe6c9de /sound/isa | |
parent | 1491c68a2248747de0bfb83350c5096954b40dce (diff) |
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>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/es18xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 77023e4b5d04..ed66f9feec09 100644 --- a/sound/isa/es18xx.c +++ b/sound/isa/es18xx.c | |||
@@ -2017,7 +2017,7 @@ static int isa_registered; | |||
2017 | static int pnp_registered; | 2017 | static int pnp_registered; |
2018 | static int pnpc_registered; | 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 | { .id = "ESS1869" }, | 2021 | { .id = "ESS1869" }, |
2022 | { .id = "ESS1879" }, | 2022 | { .id = "ESS1879" }, |
2023 | { .id = "" } /* end */ | 2023 | { .id = "" } /* end */ |
@@ -2062,7 +2062,7 @@ static int snd_audiodrive_pnp(int dev, struct snd_es18xx *chip, | |||
2062 | return 0; | 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 | /* ESS 1868 (integrated on Compaq dual P-Pro motherboard and Genius 18PnP 3D) */ | 2066 | /* ESS 1868 (integrated on Compaq dual P-Pro motherboard and Genius 18PnP 3D) */ |
2067 | { .id = "ESS1868", .devs = { { "ESS1868" }, { "ESS0000" } } }, | 2067 | { .id = "ESS1868", .devs = { { "ESS1868" }, { "ESS0000" } } }, |
2068 | /* ESS 1868 (integrated on Maxisound Cards) */ | 2068 | /* ESS 1868 (integrated on Maxisound Cards) */ |