diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-23 17:39:25 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-23 15:53:37 +0200 |
commit | 9b419cd41b592f44127aeead34d5df24dff800f0 (patch) | |
tree | 5d56389498b5b2928c704cb04fd49c77495a6322 /sound/arm | |
parent | af43173c80e424e2e5bc964c9d6a01cdaece8291 (diff) | |
download | linux-9b419cd41b592f44127aeead34d5df24dff800f0.tar.gz linux-9b419cd41b592f44127aeead34d5df24dff800f0.tar.bz2 linux-9b419cd41b592f44127aeead34d5df24dff800f0.zip |
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.c | 2 |
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 = { |