diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-08-15 04:09:54 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-15 08:05:16 -0400 |
commit | eb2c18309491325381172cc2838006c5e9fdd0f4 (patch) | |
tree | d7d546de781548643d43356dcc15d03cf654dea2 /sound/firewire/motu | |
parent | c9480d055e306a855f8a8d2b3b097773cd0d5ad0 (diff) |
ALSA: firewire-motu: constify snd_rawmidi_ops structures
These snd_rawmidi_ops structures are only passed as the third
argument of snd_rawmidi_set_ops. This argument is const, so the
snd_rawmidi_ops structures can be const too.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/motu')
-rw-r--r-- | sound/firewire/motu/motu-midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/motu/motu-midi.c b/sound/firewire/motu/motu-midi.c index e3acfcc53f4e..e55cab6d79c7 100644 --- a/sound/firewire/motu/motu-midi.c +++ b/sound/firewire/motu/motu-midi.c | |||
@@ -128,12 +128,12 @@ static void set_midi_substream_names(struct snd_motu *motu, | |||
128 | 128 | ||
129 | int snd_motu_create_midi_devices(struct snd_motu *motu) | 129 | int snd_motu_create_midi_devices(struct snd_motu *motu) |
130 | { | 130 | { |
131 | static struct snd_rawmidi_ops capture_ops = { | 131 | static const struct snd_rawmidi_ops capture_ops = { |
132 | .open = midi_capture_open, | 132 | .open = midi_capture_open, |
133 | .close = midi_capture_close, | 133 | .close = midi_capture_close, |
134 | .trigger = midi_capture_trigger, | 134 | .trigger = midi_capture_trigger, |
135 | }; | 135 | }; |
136 | static struct snd_rawmidi_ops playback_ops = { | 136 | static const struct snd_rawmidi_ops playback_ops = { |
137 | .open = midi_playback_open, | 137 | .open = midi_playback_open, |
138 | .close = midi_playback_close, | 138 | .close = midi_playback_close, |
139 | .trigger = midi_playback_trigger, | 139 | .trigger = midi_playback_trigger, |