summaryrefslogtreecommitdiff
path: root/sound/arm
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-23 15:09:25 +0300
committerTakashi Iwai <tiwai@suse.de>2017-08-23 16:53:37 +0300
commit9b419cd41b592f44127aeead34d5df24dff800f0 (patch)
tree5d56389498b5b2928c704cb04fd49c77495a6322 /sound/arm
parentaf43173c80e424e2e5bc964c9d6a01cdaece8291 (diff)
downloadlinux-9b419cd41b592f44127aeead34d5df24dff800f0.tar.xz
ALSA: aaci: constify ac97_pcm structures
ac97_pcm are not supposed to change at runtime. All functions working with ac97_pcm provided by <sound/ac97_codec.h> work with const ac97_pcm. 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/arm')
-rw-r--r--sound/arm/aaci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index 1b9f440a26ee..0114ffed56dd 100644
--- a/sound/arm/aaci.c
+++ b/sound/arm/aaci.c
@@ -786,7 +786,7 @@ static SIMPLE_DEV_PM_OPS(aaci_dev_pm_ops, aaci_suspend, aaci_resume);
#endif
-static struct ac97_pcm ac97_defs[] = {
+static const struct ac97_pcm ac97_defs[] = {
[0] = { /* Front PCM */
.exclusive = 1,
.r = {