Skip to content

Commit

Permalink
sound: emu8000: constify emu8000_ops
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
JuliaLawall authored and tiwai committed Aug 15, 2017
1 parent 2675be5 commit c9480d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/isa/sb/emu8000_callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c9480d0

Please sign in to comment.