ALSA: atiixp: constify ac97_pcm structures
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 12:09:27 +0000 (17:39 +0530)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Aug 2017 13:53:39 +0000 (15:53 +0200)
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>
sound/pci/atiixp.c

index de53c2aa5b20242c363ea5b725ccf2f5dd14c50b..7ae63d452bba1ca4f2f7514d1593066486a00440 100644 (file)
@@ -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,