projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b419cd
)
ALSA: ac97c: constify ac97_pcm structures
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 12:09:26 +0000
(17:39 +0530)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 23 Aug 2017 13:53:38 +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/atmel/ac97c.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/atmel/ac97c.c
b/sound/atmel/ac97c.c
index 5402f825811dbd9f7918c346430a1bc3c690fa44..24623c7907737d5110c9f8015855e1513a666bb0 100644
(file)
--- 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,