Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sound: emu8000: constify emu8000_ops

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>

authored by

Julia Lawall and committed by
Takashi Iwai
c9480d05 2675be5a

+1 -1
+1 -1
sound/isa/sb/emu8000_callback.c
··· 62 62 /* 63 63 * set up operators 64 64 */ 65 - static struct snd_emux_operators emu8000_ops = { 65 + static const struct snd_emux_operators emu8000_ops = { 66 66 .owner = THIS_MODULE, 67 67 .get_voice = get_voice, 68 68 .prepare = start_voice,