From: Julia Lawall Date: Mon, 14 Aug 2017 17:13:26 +0000 (+0200) Subject: sound: emu8000: constify emu8000_ops X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c9480d055e306a855f8a8d2b3b097773cd0d5ad0;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/isa/sb/emu8000_callback.c b/sound/isa/sb/emu8000_callback.c index d28d712f99f4..5a485504f607 100644 --- 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,