diff options
author | 2017-08-23 17:39:27 +0530 | |
---|---|---|
committer | 2017-08-23 15:53:39 +0200 | |
commit | 9715f0bdb61e98652a1c84408f2bc059d01ce85b (patch) | |
tree | a46e4c8fc2942ffdd3279fe7540519637fac472b /sound | |
parent | ALSA: ac97c: constify ac97_pcm structures (diff) | |
download | linux-9715f0bdb61e98652a1c84408f2bc059d01ce85b.tar.gz linux-9715f0bdb61e98652a1c84408f2bc059d01ce85b.tar.bz2 linux-9715f0bdb61e98652a1c84408f2bc059d01ce85b.zip |
ALSA: atiixp: 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')
-rw-r--r-- | sound/pci/atiixp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |