提交 621c51be 编写于 作者: B Bhumika Goyal 提交者: Takashi Iwai

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: NBhumika Goyal <bhumirks@gmail.com>
Acked-by: NClemens Ladisch <clemens@ladisch.de>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 c4fd4379
...@@ -51,6 +51,6 @@ void dg_suspend(struct oxygen *chip); ...@@ -51,6 +51,6 @@ void dg_suspend(struct oxygen *chip);
void dg_resume(struct oxygen *chip); void dg_resume(struct oxygen *chip);
void dg_cleanup(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 #endif
...@@ -449,7 +449,7 @@ static int dg_mixer_init(struct oxygen *chip) ...@@ -449,7 +449,7 @@ static int dg_mixer_init(struct oxygen *chip)
return 0; return 0;
} }
struct oxygen_model model_xonar_dg = { const struct oxygen_model model_xonar_dg = {
.longname = "C-Media Oxygen HD Audio", .longname = "C-Media Oxygen HD Audio",
.chip = "CMI8786", .chip = "CMI8786",
.init = dg_init, .init = dg_init,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册