projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b1b937
)
ASoC: Declare const properly for enum texts
author
Takashi Iwai
<tiwai@suse.de>
Tue, 3 May 2011 10:50:29 +0000
(12:50 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 3 May 2011 10:51:59 +0000
(12:51 +0200)
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>
include/sound/soc.h
patch
|
blob
|
history
diff --git
a/include/sound/soc.h
b/include/sound/soc.h
index 6ce3e573fb409e6be42828d4b968f92dac83085c..b27c7a2d3bb0bdd0fb1b8dd37b2dc6bd523ff62d 100644
(file)
--- 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;
};