From: Sebastian Reichel <sre@kernel.org>
Date: Mon, 28 Apr 2014 14:07:19 +0000 (+0200)
Subject: ASoC: omap: rx51: Use static const char * const arrays
X-Git-Tag: firefly_0821_release~176^2~3750^2~24^2~5^2~12
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=441dc45aa21ea7e1a6283e62489b940fdb3969d8;p=firefly-linux-kernel-4.4.55.git

ASoC: omap: rx51: Use static const char * const arrays

Mark the array and the string const by using "static const char * const
foo[]" instead of "static const char* foo[]".

Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
---

diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c
index add0047ea6c5..1a3f05ce39a5 100644
--- a/sound/soc/omap/rx51.c
+++ b/sound/soc/omap/rx51.c
@@ -258,9 +258,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
 	{"b Mic Bias", NULL, "HS Mic"}
 };
 
-static const char *spk_function[] = {"Off", "On"};
-static const char *input_function[] = {"ADC", "Digital Mic"};
-static const char *jack_function[] = {"Off", "TV-OUT", "Headphone", "Headset"};
+static const char * const spk_function[] = {"Off", "On"};
+static const char * const input_function[] = {"ADC", "Digital Mic"};
+static const char * const jack_function[] = {
+	"Off", "TV-OUT", "Headphone", "Headset"
+};
 
 static const struct soc_enum rx51_enum[] = {
 	SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(spk_function), spk_function),