summaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/rx51.c
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2014-04-28 16:07:19 +0200
committerMark Brown <broonie@linaro.org>2014-04-29 15:22:14 -0700
commit441dc45aa21ea7e1a6283e62489b940fdb3969d8 (patch)
treea79d442810036b9c2b867a1a34f352645d06979b /sound/soc/omap/rx51.c
parenta09f06401239ae4d52c4726f8469e7cd2eb2dae8 (diff)
downloadlinux-441dc45aa21ea7e1a6283e62489b940fdb3969d8.tar.bz2
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>
Diffstat (limited to 'sound/soc/omap/rx51.c')
-rw-r--r--sound/soc/omap/rx51.c8
1 files changed, 5 insertions, 3 deletions
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),