projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9480d0
)
ALSA: firewire-motu: constify snd_rawmidi_ops structures
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Tue, 15 Aug 2017 08:09:54 +0000
(10:09 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 15 Aug 2017 12:05:16 +0000
(14:05 +0200)
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>
sound/firewire/motu/motu-midi.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/firewire/motu/motu-midi.c
b/sound/firewire/motu/motu-midi.c
index e3acfcc53f4e3a02b4393dc3e8c97b46be3a68ef..e55cab6d79c7df91d72b6837def3a1bdb1b6bdca 100644
(file)
--- 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,
int snd_motu_create_midi_devices(struct snd_motu *motu)
{
- 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,