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

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
......@@ -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;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment