diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-01-05 11:30:12 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-01-12 06:50:48 -0500 |
commit | f43e5407e4184ef0e5a31272f80ca893cb5ee24c (patch) | |
tree | a2877c89429022881d27b4b09f55fb8326e9ddf9 /sound/usb/caiaq/midi.c | |
parent | 57eb67994a9d117ea81d1580a9163733e26a1fc3 (diff) |
ALSA: usb: 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/usb/caiaq/midi.c')
-rw-r--r-- | sound/usb/caiaq/midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/caiaq/midi.c b/sound/usb/caiaq/midi.c index 2d7588461b33..f8e5b1b57c4f 100644 --- a/sound/usb/caiaq/midi.c +++ b/sound/usb/caiaq/midi.c | |||
@@ -102,14 +102,14 @@ static void snd_usb_caiaq_midi_output_trigger(struct snd_rawmidi_substream *subs | |||
102 | } | 102 | } |
103 | 103 | ||
104 | 104 | ||
105 | static struct snd_rawmidi_ops snd_usb_caiaq_midi_output = | 105 | static const struct snd_rawmidi_ops snd_usb_caiaq_midi_output = |
106 | { | 106 | { |
107 | .open = snd_usb_caiaq_midi_output_open, | 107 | .open = snd_usb_caiaq_midi_output_open, |
108 | .close = snd_usb_caiaq_midi_output_close, | 108 | .close = snd_usb_caiaq_midi_output_close, |
109 | .trigger = snd_usb_caiaq_midi_output_trigger, | 109 | .trigger = snd_usb_caiaq_midi_output_trigger, |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static struct snd_rawmidi_ops snd_usb_caiaq_midi_input = | 112 | static const struct snd_rawmidi_ops snd_usb_caiaq_midi_input = |
113 | { | 113 | { |
114 | .open = snd_usb_caiaq_midi_input_open, | 114 | .open = snd_usb_caiaq_midi_input_open, |
115 | .close = snd_usb_caiaq_midi_input_close, | 115 | .close = snd_usb_caiaq_midi_input_close, |