summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs46xx
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-01-05 11:29:31 -0500
committerTakashi Iwai <tiwai@suse.de>2017-01-12 06:50:26 -0500
commit485885b9d0474ac374297e637f479c22930bb593 (patch)
tree343e7aef41559c04b81c9f476439c9b1fe291bde /sound/pci/cs46xx
parent9021b2b8fd8f352abfc9470249eca9b36356a155 (diff)
ALSA: pci: 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/pci/cs46xx')
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c
index fde3cd48258c..e561fd536f5b 100644
--- a/sound/pci/cs46xx/cs46xx_lib.c
+++ b/sound/pci/cs46xx/cs46xx_lib.c
@@ -2683,14 +2683,14 @@ static void snd_cs46xx_midi_output_trigger(struct snd_rawmidi_substream *substre
2683 spin_unlock_irqrestore(&chip->reg_lock, flags); 2683 spin_unlock_irqrestore(&chip->reg_lock, flags);
2684} 2684}
2685 2685
2686static struct snd_rawmidi_ops snd_cs46xx_midi_output = 2686static const struct snd_rawmidi_ops snd_cs46xx_midi_output =
2687{ 2687{
2688 .open = snd_cs46xx_midi_output_open, 2688 .open = snd_cs46xx_midi_output_open,
2689 .close = snd_cs46xx_midi_output_close, 2689 .close = snd_cs46xx_midi_output_close,
2690 .trigger = snd_cs46xx_midi_output_trigger, 2690 .trigger = snd_cs46xx_midi_output_trigger,
2691}; 2691};
2692 2692
2693static struct snd_rawmidi_ops snd_cs46xx_midi_input = 2693static const struct snd_rawmidi_ops snd_cs46xx_midi_input =
2694{ 2694{
2695 .open = snd_cs46xx_midi_input_open, 2695 .open = snd_cs46xx_midi_input_open,
2696 .close = snd_cs46xx_midi_input_close, 2696 .close = snd_cs46xx_midi_input_close,