diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-03 12:50:29 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-03 12:51:59 +0200 |
commit | 87023ff74b2358b5e51d3c790704f786e89ff769 (patch) | |
tree | 090be1f72b3d41f9fdce42e89155d7066928fdce /include/sound | |
parent | ASoC: Don't specify the DMA driver for Goni baseband link (diff) | |
download | linux-87023ff74b2358b5e51d3c790704f786e89ff769.tar.xz linux-87023ff74b2358b5e51d3c790704f786e89ff769.zip |
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 <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 6ce3e573fb40..b27c7a2d3bb0 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; }; |