ALSA: oxygen: Xonar DG(X): make model_xonar_dg const
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 14 Sep 2017 14:04:15 +0000 (19:34 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 Sep 2017 13:48:25 +0000 (15:48 +0200)
Make this const as it not modified anywhere. It is only used during a
copy operation. Also, add const to the declaration in header.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/oxygen/xonar_dg.h
sound/pci/oxygen/xonar_dg_mixer.c

index d461df3..5a07cda 100644 (file)
@@ -51,6 +51,6 @@ void dg_suspend(struct oxygen *chip);
 void dg_resume(struct oxygen *chip);
 void dg_cleanup(struct oxygen *chip);
 
-extern struct oxygen_model model_xonar_dg;
+extern const struct oxygen_model model_xonar_dg;
 
 #endif
index b885dac..d22fbe8 100644 (file)
@@ -449,7 +449,7 @@ static int dg_mixer_init(struct oxygen *chip)
        return 0;
 }
 
-struct oxygen_model model_xonar_dg = {
+const struct oxygen_model model_xonar_dg = {
        .longname = "C-Media Oxygen HD Audio",
        .chip = "CMI8786",
        .init = dg_init,