aboutsummaryrefslogtreecommitdiffstats
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
parentALSA: aaci: constify ac97_pcm structures (diff)
downloadlinux-dev-3ca8590be8e784d7b2c806f2bb7dcc2b492fdea5.tar.xz
linux-dev-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,