summaryrefslogtreecommitdiff
path: root/sound/atmel
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-23 17:39:26 +0530
committerTakashi Iwai <tiwai@suse.de>2017-08-23 15:53:38 +0200
commit3ca8590be8e784d7b2c806f2bb7dcc2b492fdea5 (patch)
treee5b09ae9a3b37cf7c8c2c51ba0b885c380292632 /sound/atmel
parent9b419cd41b592f44127aeead34d5df24dff800f0 (diff)
downloadlinux-rpi3-3ca8590be8e784d7b2c806f2bb7dcc2b492fdea5.tar.gz
linux-rpi3-3ca8590be8e784d7b2c806f2bb7dcc2b492fdea5.tar.bz2
linux-rpi3-3ca8590be8e784d7b2c806f2bb7dcc2b492fdea5.zip
ALSA: ac97c: 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/atmel')
-rw-r--r--sound/atmel/ac97c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
index 5402f825811d..24623c790773 100644
--- a/sound/atmel/ac97c.c
+++ b/sound/atmel/ac97c.c
@@ -558,7 +558,7 @@ static irqreturn_t atmel_ac97c_interrupt(int irq, void *dev)
return retval;
}
-static struct ac97_pcm at91_ac97_pcm_defs[] = {
+static const struct ac97_pcm at91_ac97_pcm_defs[] = {
/* Playback */
{
.exclusive = 1,