aboutsummaryrefslogtreecommitdiffstats
path: root/sound/synth
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 09:16:45 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-03 09:24:19 +0100
commitaad7ebb544072bcb9335fa4eb0fbd1b85a6c495b (patch)
tree313468de9b1e0fdaaa0760a1ba4e578070cce857 /sound/synth
parentALSA: info: Make snd_info_entry_ops as const (diff)
downloadlinux-dev-aad7ebb544072bcb9335fa4eb0fbd1b85a6c495b.tar.xz
linux-dev-aad7ebb544072bcb9335fa4eb0fbd1b85a6c495b.zip
ALSA: seq: Constify struct snd_midi_op
Change the argument of snd_midi_process_event() to receive a const snd_midi_op pointer and its callers respectively. This allows further optimizations. There should be no functional changes by this patch. Link: https://lore.kernel.org/r/20200103081714.9560-30-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/synth')
-rw-r--r--sound/synth/emux/emux_seq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/synth/emux/emux_seq.c b/sound/synth/emux/emux_seq.c
index 9d8a69f1a644..b227c7e0bc2a 100644
--- a/sound/synth/emux/emux_seq.c
+++ b/sound/synth/emux/emux_seq.c
@@ -19,7 +19,7 @@ static int snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *inf
/*
* MIDI emulation operators
*/
-static struct snd_midi_op emux_ops = {
+static const struct snd_midi_op emux_ops = {
.note_on = snd_emux_note_on,
.note_off = snd_emux_note_off,
.key_press = snd_emux_key_press,