ASoC: omap: rx51: Use static const char * const arrays
authorSebastian Reichel <sre@kernel.org>
Mon, 28 Apr 2014 14:07:19 +0000 (16:07 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 29 Apr 2014 22:22:14 +0000 (15:22 -0700)
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>
sound/soc/omap/rx51.c

index add0047ea6c5a2f61a5237eadb530636bbbf5c96..1a3f05ce39a51af947a73b9b3a7bcf7f48713c48 100644 (file)
@@ -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),