aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-05-03 06:50:29 -0400
committerTakashi Iwai <tiwai@suse.de>2011-05-03 06:51:59 -0400
commit87023ff74b2358b5e51d3c790704f786e89ff769 (patch)
tree090be1f72b3d41f9fdce42e89155d7066928fdce /include/sound
parent9b1b937c77f94f8c94874351a2d5ba92cd99f1ec (diff)
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.h2
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 {
820 unsigned char shift_r; 820 unsigned char shift_r;
821 unsigned int max; 821 unsigned int max;
822 unsigned int mask; 822 unsigned int mask;
823 const char **texts; 823 const char * const *texts;
824 const unsigned int *values; 824 const unsigned int *values;
825 void *dapm; 825 void *dapm;
826}; 826};