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:
2675be5
)
sound: emu8000: constify emu8000_ops
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Mon, 14 Aug 2017 17:13:26 +0000
(19:13 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 15 Aug 2017 06:21:51 +0000
(08:21 +0200)
The structure emu8000_ops is only copied into another structure, so
it can be const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/emu8000_callback.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/isa/sb/emu8000_callback.c
b/sound/isa/sb/emu8000_callback.c
index d28d712f99f4266367960814e91cdfab74c3b342..5a485504f607d774a46b8091aebc042bb493f75e 100644
(file)
--- a/
sound/isa/sb/emu8000_callback.c
+++ b/
sound/isa/sb/emu8000_callback.c
@@
-62,7
+62,7
@@
static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch);
/*
* set up operators
*/
-static struct snd_emux_operators emu8000_ops = {
+static
const
struct snd_emux_operators emu8000_ops = {
.owner = THIS_MODULE,
.get_voice = get_voice,
.prepare = start_voice,