1
0
Fork 0

ALSA: oxygen: Xonar DG(X): make model_xonar_dg const

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>
hifive-unleashed-5.1
Bhumika Goyal 2017-09-14 19:34:15 +05:30 committed by Takashi Iwai
parent c4fd43793b
commit 621c51be8e
2 changed files with 2 additions and 2 deletions

View 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

View 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,