mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ALSA: rawmidi: Add const to snd_rawmidi_ops
Make snd_rawmidi_substream.ops to be a const pointer to be safer and allow more optimization. The patches to constify each rawmidi ops will follow. Reviewed-by: Takashi Sakamoto <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
46a049dae7
commit
6ba79b8532
2 changed files with 3 additions and 3 deletions
|
|
@ -103,7 +103,7 @@ struct snd_rawmidi_substream {
|
|||
struct snd_rawmidi_runtime *runtime;
|
||||
struct pid *pid;
|
||||
/* hardware layer */
|
||||
struct snd_rawmidi_ops *ops;
|
||||
const struct snd_rawmidi_ops *ops;
|
||||
};
|
||||
|
||||
struct snd_rawmidi_file {
|
||||
|
|
@ -155,7 +155,7 @@ int snd_rawmidi_new(struct snd_card *card, char *id, int device,
|
|||
int output_count, int input_count,
|
||||
struct snd_rawmidi **rmidi);
|
||||
void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream,
|
||||
struct snd_rawmidi_ops *ops);
|
||||
const struct snd_rawmidi_ops *ops);
|
||||
|
||||
/* callbacks */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue