From: Arvind Yadav Date: Wed, 23 Aug 2017 12:09:27 +0000 (+0530) Subject: ALSA: atiixp: constify ac97_pcm structures X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9715f0bdb61e98652a1c84408f2bc059d01ce85b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ALSA: atiixp: constify ac97_pcm structures ac97_pcm are not supposed to change at runtime. All functions working with ac97_pcm provided by work with const ac97_pcm. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index de53c2aa5b20..7ae63d452bba 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c @@ -1183,7 +1183,7 @@ static const struct snd_pcm_ops snd_atiixp_spdif_ops = { .pointer = snd_atiixp_pcm_pointer, }; -static struct ac97_pcm atiixp_pcm_defs[] = { +static const struct ac97_pcm atiixp_pcm_defs[] = { /* front PCM */ { .exclusive = 1,