diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-23 14:09:25 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-23 15:53:37 +0200 |
commit | 9b419cd41b592f44127aeead34d5df24dff800f0 (patch) | |
tree | 5d56389498b5b2928c704cb04fd49c77495a6322 /sound/arm/aaci.c | |
parent | ALSA: fireface: Use common error handling code in pcm_open() (diff) | |
download | linux-9b419cd41b592f44127aeead34d5df24dff800f0.tar.xz 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/aaci.c')
-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 = { |