mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
57eb67994a
commit
f43e5407e4
5 changed files with 10 additions and 10 deletions
|
@ -1234,14 +1234,14 @@ static void snd_usbmidi_input_trigger(struct snd_rawmidi_substream *substream,
|
|||
clear_bit(substream->number, &umidi->input_triggered);
|
||||
}
|
||||
|
||||
static struct snd_rawmidi_ops snd_usbmidi_output_ops = {
|
||||
static const struct snd_rawmidi_ops snd_usbmidi_output_ops = {
|
||||
.open = snd_usbmidi_output_open,
|
||||
.close = snd_usbmidi_output_close,
|
||||
.trigger = snd_usbmidi_output_trigger,
|
||||
.drain = snd_usbmidi_output_drain,
|
||||
};
|
||||
|
||||
static struct snd_rawmidi_ops snd_usbmidi_input_ops = {
|
||||
static const struct snd_rawmidi_ops snd_usbmidi_input_ops = {
|
||||
.open = snd_usbmidi_input_open,
|
||||
.close = snd_usbmidi_input_close,
|
||||
.trigger = snd_usbmidi_input_trigger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue