summaryrefslogtreecommitdiff
path: root/sound/firewire/tascam/tascam-midi.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-01-05 19:29:54 +0300
committerTakashi Iwai <tiwai@suse.de>2017-01-12 14:50:38 +0300
commit57eb67994a9d117ea81d1580a9163733e26a1fc3 (patch)
tree6861d99288d297bb290f060bf607c34e4b197bf3 /sound/firewire/tascam/tascam-midi.c
parent485885b9d0474ac374297e637f479c22930bb593 (diff)
downloadlinux-57eb67994a9d117ea81d1580a9163733e26a1fc3.tar.xz
ALSA: firewire: 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/firewire/tascam/tascam-midi.c')
-rw-r--r--sound/firewire/tascam/tascam-midi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/tascam/tascam-midi.c b/sound/firewire/tascam/tascam-midi.c
index 7fdc71e4763e..df4f95d65925 100644
--- a/sound/firewire/tascam/tascam-midi.c
+++ b/sound/firewire/tascam/tascam-midi.c
@@ -70,12 +70,12 @@ static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up)
int snd_tscm_create_midi_devices(struct snd_tscm *tscm)
{
- static struct snd_rawmidi_ops capture_ops = {
+ static const struct snd_rawmidi_ops capture_ops = {
.open = midi_capture_open,
.close = midi_capture_close,
.trigger = midi_capture_trigger,
};
- static struct snd_rawmidi_ops playback_ops = {
+ static const struct snd_rawmidi_ops playback_ops = {
.open = midi_playback_open,
.close = midi_playback_close,
.trigger = midi_playback_trigger,