ALSA: emu10k1: constify snd_emux_operators structure
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 19 Feb 2017 10:21:30 +0000 (15:51 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sun, 19 Feb 2017 21:07:29 +0000 (22:07 +0100)
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>
sound/pci/emu10k1/emu10k1_callback.c

index d2c7ea3a7610861a15730bb3a8b0c8764205fd5a..aa2cc27b849166be87c533efb4b66b15ce96fe31 100644 (file)
@@ -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,