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:
3ca8590
)
ALSA: atiixp: constify ac97_pcm structures
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 12:09:27 +0000
(17:39 +0530)
committer
Takashi 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/atiixp.c
b/sound/pci/atiixp.c
index de53c2aa5b20242c363ea5b725ccf2f5dd14c50b..7ae63d452bba1ca4f2f7514d1593066486a00440 100644
(file)
--- 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,