diff options
author | Sebastian Reichel <sre@kernel.org> | 2014-04-28 10:07:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-29 18:22:14 -0400 |
commit | 441dc45aa21ea7e1a6283e62489b940fdb3969d8 (patch) | |
tree | a79d442810036b9c2b867a1a34f352645d06979b /sound/soc/omap/rx51.c | |
parent | a09f06401239ae4d52c4726f8469e7cd2eb2dae8 (diff) |
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.c | 8 |
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[] = { | |||
258 | {"b Mic Bias", NULL, "HS Mic"} | 258 | {"b Mic Bias", NULL, "HS Mic"} |
259 | }; | 259 | }; |
260 | 260 | ||
261 | static const char *spk_function[] = {"Off", "On"}; | 261 | static const char * const spk_function[] = {"Off", "On"}; |
262 | static const char *input_function[] = {"ADC", "Digital Mic"}; | 262 | static const char * const input_function[] = {"ADC", "Digital Mic"}; |
263 | static const char *jack_function[] = {"Off", "TV-OUT", "Headphone", "Headset"}; | 263 | static const char * const jack_function[] = { |
264 | "Off", "TV-OUT", "Headphone", "Headset" | ||
265 | }; | ||
264 | 266 | ||
265 | static const struct soc_enum rx51_enum[] = { | 267 | static const struct soc_enum rx51_enum[] = { |
266 | SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(spk_function), spk_function), | 268 | SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(spk_function), spk_function), |