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

Commit 87023ff7 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ASoC: Declare const properly for enum texts



The enum texts are supposed to be const char * const [].  Without the
second const, it gets compile warnings like
    sound/soc/codecs/max98095.c:607:2: warning: initialization discards qualifiers from pointer target type

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9b1b937c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -820,7 +820,7 @@ struct soc_enum {
	unsigned char shift_r;
	unsigned int max;
	unsigned int mask;
	const char **texts;
	const char * const *texts;
	const unsigned int *values;
	void *dapm;
};