diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 15:36:22 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 12:42:22 +0200 |
commit | 06891ec6e0b6e2214a6eccfaa8be33ef5bd2b393 (patch) | |
tree | ce5d83e8922964490b3ee178bee1f06a0da12b18 | |
parent | 1d906e85483f7e04238c06a16c332cf8a3de004b (diff) |
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>
-rw-r--r-- | sound/isa/cmi8330.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/cmi8330.c b/sound/isa/cmi8330.c index f64b29ab5cc7..6b8c46942efb 100644 --- a/sound/isa/cmi8330.c +++ b/sound/isa/cmi8330.c @@ -182,7 +182,7 @@ struct snd_cmi8330 { #ifdef CONFIG_PNP -static struct pnp_card_device_id snd_cmi8330_pnpids[] = { +static const struct pnp_card_device_id snd_cmi8330_pnpids[] = { { .id = "CMI0001", .devs = { { "@X@0001" }, { "@@@0001" }, { "@H@0001" }, { "A@@0001" } } }, { .id = "CMI0001", .devs = { { "@@@0001" }, { "@X@0001" }, { "@H@0001" } } }, { .id = "" } |