summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-02-19 11:21:30 +0100
committerTakashi Iwai <tiwai@suse.de>2017-02-19 22:07:29 +0100
commit3bb9eca913025ed05c0510de831c67b7bef652c5 (patch)
tree74f947414957b9dc96741ac565e5a1c731f63ed7 /sound/pci
parentALSA: x86: Don't bail out from PCM ops when disconnected (diff)
downloadlinux-3bb9eca913025ed05c0510de831c67b7bef652c5.tar.xz
linux-3bb9eca913025ed05c0510de831c67b7bef652c5.zip
ALSA: emu10k1: constify snd_emux_operators structure
Declare snd_emux_operators structure as const as it is only copied into another structure. So, snd_emux_operators structures having this property can be made const. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/emu10k1/emu10k1_callback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/emu10k1_callback.c b/sound/pci/emu10k1/emu10k1_callback.c
index d2c7ea3a7610..aa2cc27b8491 100644
--- a/sound/pci/emu10k1/emu10k1_callback.c
+++ b/sound/pci/emu10k1/emu10k1_callback.c
@@ -61,7 +61,7 @@ static void set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
/*
* set up operators
*/
-static struct snd_emux_operators emu10k1_ops = {
+static const struct snd_emux_operators emu10k1_ops = {
.owner = THIS_MODULE,
.get_voice = get_voice,
.prepare = start_voice,