提交 5bca3969 编写于 作者: F Fabian Frederick 提交者: Mark Brown

ASoC: wm0010.c: add static to local variable

Also add const to array

 text	   data	    bss	    dec	    hex	filename
 10946	   2904	   3528	  17378	   43e2	sound/soc/codecs/wm0010.o-before
 10891	   2840	   3512	  17243	   435b	sound/soc/codecs/wm0010.o-after
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 7171511e
...@@ -144,7 +144,7 @@ static const struct snd_soc_dapm_route wm0010_dapm_routes[] = { ...@@ -144,7 +144,7 @@ static const struct snd_soc_dapm_route wm0010_dapm_routes[] = {
static const char *wm0010_state_to_str(enum wm0010_state state) static const char *wm0010_state_to_str(enum wm0010_state state)
{ {
const char *state_to_str[] = { static const char * const state_to_str[] = {
"Power off", "Power off",
"Out of reset", "Out of reset",
"Boot ROM", "Boot ROM",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册