projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7171511
)
ASoC: wm0010.c: add static to local variable
author
Fabian Frederick
<fabf@skynet.be>
Tue, 27 May 2014 06:57:55 +0000
(08:57 +0200)
committer
Mark Brown
<broonie@linaro.org>
Fri, 27 Jun 2014 11:53:52 +0000
(12:53 +0100)
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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wm0010.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm0010.c
b/sound/soc/codecs/wm0010.c
index 71ce3159a62e73da7fb6c97f5ba7baed06db44c9..65d7c79716a0403cd3b942d1f29378e64d24ea94 100644
(file)
--- a/
sound/soc/codecs/wm0010.c
+++ b/
sound/soc/codecs/wm0010.c
@@
-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)
{
-
const char *
state_to_str[] = {
+
static const char * const
state_to_str[] = {
"Power off",
"Out of reset",
"Boot ROM",