diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-14 17:08:40 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 17:22:07 +0100 |
commit | 0ed6f15701efa0d62b4556900cd67a726578389e (patch) | |
tree | 445081a1485c8f9dddfc1516863c9afa39152158 /sound/soc/codecs/wm5102.c | |
parent | a180ba45b1cf630b3bd5912ce235b2ee16606b8e (diff) |
ASoC: codecs: make snd_soc_platform_driver const
Make these const as they are either passed as the 2nd argument to the
function devm_snd_soc_register_platform or snd_soc_register_platform,
and the arguments are of type 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/wm5102.c')
-rw-r--r-- | sound/soc/codecs/wm5102.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index 1fe358e6be61..f5006923be2e 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c @@ -2027,7 +2027,7 @@ static struct snd_compr_ops wm5102_compr_ops = { .copy = wm_adsp_compr_copy, }; -static struct snd_soc_platform_driver wm5102_compr_platform = { +static const struct snd_soc_platform_driver wm5102_compr_platform = { .compr_ops = &wm5102_compr_ops, }; |