diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-16 19:15:09 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-17 19:10:34 +0200 |
commit | 6e37f933ed1ade3201dd609d103c0ef79c0ef6b0 (patch) | |
tree | 246c5356bce658d2bdc578c1528f97ac674da1a3 /sound/soc/codecs/lm4857.c | |
parent | ASoC: codecs: make snd_soc_platform_driver const (diff) | |
download | linux-6e37f933ed1ade3201dd609d103c0ef79c0ef6b0.tar.xz linux-6e37f933ed1ade3201dd609d103c0ef79c0ef6b0.zip |
ASoC: codecs: make snd_soc_dai_driver and snd_soc_component_driver const
Make these two structure variables const as they are either used in a
copy operation or passed to devm_snd_soc_register_component having the
corresponding argument as const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/lm4857.c')
-rw-r--r-- | sound/soc/codecs/lm4857.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/lm4857.c b/sound/soc/codecs/lm4857.c index 558de1053f73..1e964079642a 100644 --- a/sound/soc/codecs/lm4857.c +++ b/sound/soc/codecs/lm4857.c @@ -100,7 +100,7 @@ static const struct snd_soc_dapm_route lm4857_routes[] = { { "EP", "Earpiece", "Mode" }, }; -static struct snd_soc_component_driver lm4857_component_driver = { +static const struct snd_soc_component_driver lm4857_component_driver = { .controls = lm4857_controls, .num_controls = ARRAY_SIZE(lm4857_controls), .dapm_widgets = lm4857_dapm_widgets, |