* [PATCH 1/1] sound/soc/codecs/wm0010.c: add static to local variable
@ 2014-05-27 6:57 Fabian Frederick
2014-06-27 11:54 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-05-27 6:57 UTC (permalink / raw)
To: linux-kernel; +Cc: Mark Brown, Liam Girdwood
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
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
sound/soc/codecs/wm0010.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c
index 71ce315..65d7c79 100644
--- 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",
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] sound/soc/codecs/wm0010.c: add static to local variable
2014-05-27 6:57 [PATCH 1/1] sound/soc/codecs/wm0010.c: add static to local variable Fabian Frederick
@ 2014-06-27 11:54 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-06-27 11:54 UTC (permalink / raw)
To: Fabian Frederick; +Cc: linux-kernel, Liam Girdwood
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
On Tue, May 27, 2014 at 08:57:55AM +0200, Fabian Frederick wrote:
> Also add const to array
Applied, please submit patches following the process in
SubmittingPatches - CC the relevant maintainers and lists and use a
subject line in the normal format for the subsystem.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-27 11:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-27 6:57 [PATCH 1/1] sound/soc/codecs/wm0010.c: add static to local variable Fabian Frederick
2014-06-27 11:54 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.