From: Takashi Iwai Date: Tue, 3 May 2011 10:50:29 +0000 (+0200) Subject: ASoC: Declare const properly for enum texts X-Git-Tag: v3.0-rc1~347^2~1^2~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87023ff74;p=thirdparty%2Fkernel%2Flinux.git 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: Takashi Iwai --- diff --git a/include/sound/soc.h b/include/sound/soc.h index 6ce3e573fb409..b27c7a2d3bb0b 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -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; };