summaryrefslogtreecommitdiffstats
path: root/sound/drivers/portman2x4.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-01-05 17:28:39 +0100
committerTakashi Iwai <tiwai@suse.de>2017-01-12 12:50:06 +0100
commitc36f486d7bc71d41ec6b9521574136a280c17803 (patch)
tree7a63e3561f8a651cd339ebe8c76ae8633b84857d /sound/drivers/portman2x4.c
parentALSA: seq: Constify snd_rawmidi_ops (diff)
downloadlinux-c36f486d7bc71d41ec6b9521574136a280c17803.tar.xz
linux-c36f486d7bc71d41ec6b9521574136a280c17803.zip
ALSA: drivers: Constify snd_rawmidi_ops
Now snd_rawmidi_ops is maintained as a const pointer in snd_rawmidi, we can constify the definitions. Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/portman2x4.c')
-rw-r--r--sound/drivers/portman2x4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c
index 189e3e7028af..ec8a94325ef6 100644
--- a/sound/drivers/portman2x4.c
+++ b/sound/drivers/portman2x4.c
@@ -546,13 +546,13 @@ static void snd_portman_midi_output_trigger(struct snd_rawmidi_substream *substr
spin_unlock_irqrestore(&pm->reg_lock, flags);
}
-static struct snd_rawmidi_ops snd_portman_midi_output = {
+static const struct snd_rawmidi_ops snd_portman_midi_output = {
.open = snd_portman_midi_open,
.close = snd_portman_midi_close,
.trigger = snd_portman_midi_output_trigger,
};
-static struct snd_rawmidi_ops snd_portman_midi_input = {
+static const struct snd_rawmidi_ops snd_portman_midi_input = {
.open = snd_portman_midi_open,
.close = snd_portman_midi_close,
.trigger = snd_portman_midi_input_trigger,