浏览代码

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>
Julia Lawall 8 年之前
父节点
当前提交
c9480d055e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/isa/sb/emu8000_callback.c

+ 1 - 1
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
  * set up operators
  */
  */
-static struct snd_emux_operators emu8000_ops = {
+static const struct snd_emux_operators emu8000_ops = {
 	.owner =	THIS_MODULE,
 	.owner =	THIS_MODULE,
 	.get_voice =	get_voice,
 	.get_voice =	get_voice,
 	.prepare =	start_voice,
 	.prepare =	start_voice,