diff options
author | Sebastian Reichel <sre@kernel.org> | 2014-04-28 14:07:19 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-29 22:22:14 (GMT) |
commit | 441dc45aa21ea7e1a6283e62489b940fdb3969d8 (patch) | |
tree | a79d442810036b9c2b867a1a34f352645d06979b /sound | |
parent | a09f06401239ae4d52c4726f8469e7cd2eb2dae8 (diff) | |
download | linux-441dc45aa21ea7e1a6283e62489b940fdb3969d8.tar.xz |
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')
-rw-r--r-- | sound/soc/omap/rx51.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index add0047..1a3f05c 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), |