Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 621c51be authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Takashi Iwai
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Acked-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c4fd4379
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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,