ALSA: drivers: 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:
@@ -481,14 +481,14 @@ snd_mpu401_uart_output_trigger(struct snd_rawmidi_substream *substream, int up)
|
||||
|
||||
*/
|
||||
|
||||
static struct snd_rawmidi_ops snd_mpu401_uart_output =
|
||||
static const struct snd_rawmidi_ops snd_mpu401_uart_output =
|
||||
{
|
||||
.open = snd_mpu401_uart_output_open,
|
||||
.close = snd_mpu401_uart_output_close,
|
||||
.trigger = snd_mpu401_uart_output_trigger,
|
||||
};
|
||||
|
||||
static struct snd_rawmidi_ops snd_mpu401_uart_input =
|
||||
static const struct snd_rawmidi_ops snd_mpu401_uart_input =
|
||||
{
|
||||
.open = snd_mpu401_uart_input_open,
|
||||
.close = snd_mpu401_uart_input_close,
|
||||
|
Reference in New Issue
Block a user