aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/bcd2000/bcd2000.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-01-05 11:30:12 -0500
committerTakashi Iwai <tiwai@suse.de>2017-01-12 06:50:48 -0500
commitf43e5407e4184ef0e5a31272f80ca893cb5ee24c (patch)
treea2877c89429022881d27b4b09f55fb8326e9ddf9 /sound/usb/bcd2000/bcd2000.c
parent57eb67994a9d117ea81d1580a9163733e26a1fc3 (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/bcd2000/bcd2000.c')
-rw-r--r--sound/usb/bcd2000/bcd2000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/bcd2000/bcd2000.c b/sound/usb/bcd2000/bcd2000.c
index d060dddcc52d..2ff9d578753a 100644
--- a/sound/usb/bcd2000/bcd2000.c
+++ b/sound/usb/bcd2000/bcd2000.c
@@ -252,13 +252,13 @@ static void bcd2000_input_complete(struct urb *urb)
252 __func__, ret); 252 __func__, ret);
253} 253}
254 254
255static struct snd_rawmidi_ops bcd2000_midi_output = { 255static const struct snd_rawmidi_ops bcd2000_midi_output = {
256 .open = bcd2000_midi_output_open, 256 .open = bcd2000_midi_output_open,
257 .close = bcd2000_midi_output_close, 257 .close = bcd2000_midi_output_close,
258 .trigger = bcd2000_midi_output_trigger, 258 .trigger = bcd2000_midi_output_trigger,
259}; 259};
260 260
261static struct snd_rawmidi_ops bcd2000_midi_input = { 261static const struct snd_rawmidi_ops bcd2000_midi_input = {
262 .open = bcd2000_midi_input_open, 262 .open = bcd2000_midi_input_open,
263 .close = bcd2000_midi_input_close, 263 .close = bcd2000_midi_input_close,
264 .trigger = bcd2000_midi_input_trigger, 264 .trigger = bcd2000_midi_input_trigger,