diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:17:08 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:24:41 +0300 |
commit | 87065d3d946bf116a639f3bd88ebbd3f3938cffb (patch) | |
tree | 10a4bbfb2bdf7290095d96c19ecc0c4e6fba5979 /sound/synth/emux/emux_oss.c | |
parent | 49624472a90b0f50f20389e0896e2eb53ea71b5e (diff) | |
download | linux-87065d3d946bf116a639f3bd88ebbd3f3938cffb.tar.xz |
ALSA: seq: oss: Constify snd_seq_oss_callback definitions
The snd_seq_oss_callback items are just copied to another struct
as-is, hence they can be declared as const.
There should be no functional changes by this patch.
Link: https://lore.kernel.org/r/20200103081714.9560-53-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/synth/emux/emux_oss.c')
-rw-r--r-- | sound/synth/emux/emux_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/synth/emux/emux_oss.c b/sound/synth/emux/emux_oss.c index a14fc6562664..d8d32671f703 100644 --- a/sound/synth/emux/emux_oss.c +++ b/sound/synth/emux/emux_oss.c @@ -34,7 +34,7 @@ static void fake_event(struct snd_emux *emu, struct snd_emux_port *port, int ch, int param, int val, int atomic, int hop); /* operators */ -static struct snd_seq_oss_callback oss_callback = { +static const struct snd_seq_oss_callback oss_callback = { .owner = THIS_MODULE, .open = snd_emux_open_seq_oss, .close = snd_emux_close_seq_oss, |