mirror of https://gitee.com/openkylin/linux.git
ASoC: Intel: make snd_soc_platform_driver const
Make these const as they are only passed as the 2nd argument to the function snd_soc_register_platform, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
67e8ee9b4b
commit
80cc4df8b4
|
@ -705,7 +705,7 @@ static int sst_soc_probe(struct snd_soc_platform *platform)
|
|||
return sst_dsp_init_v2_dpcm(platform);
|
||||
}
|
||||
|
||||
static struct snd_soc_platform_driver sst_soc_platform_drv = {
|
||||
static const struct snd_soc_platform_driver sst_soc_platform_drv = {
|
||||
.probe = sst_soc_probe,
|
||||
.ops = &sst_platform_ops,
|
||||
.compr_ops = &sst_platform_compr_ops,
|
||||
|
|
|
@ -395,7 +395,7 @@ static int sst_byt_pcm_remove(struct snd_soc_platform *platform)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_soc_platform_driver byt_soc_platform = {
|
||||
static const struct snd_soc_platform_driver byt_soc_platform = {
|
||||
.probe = sst_byt_pcm_probe,
|
||||
.remove = sst_byt_pcm_remove,
|
||||
.ops = &sst_byt_pcm_ops,
|
||||
|
|
|
@ -1135,7 +1135,7 @@ static int hsw_pcm_remove(struct snd_soc_platform *platform)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_soc_platform_driver hsw_soc_platform = {
|
||||
static const struct snd_soc_platform_driver hsw_soc_platform = {
|
||||
.probe = hsw_pcm_probe,
|
||||
.remove = hsw_pcm_remove,
|
||||
.ops = &hsw_pcm_ops,
|
||||
|
|
|
@ -1310,7 +1310,7 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
|
|||
|
||||
return 0;
|
||||
}
|
||||
static struct snd_soc_platform_driver skl_platform_drv = {
|
||||
static const struct snd_soc_platform_driver skl_platform_drv = {
|
||||
.probe = skl_platform_soc_probe,
|
||||
.ops = &skl_platform_ops,
|
||||
.pcm_new = skl_pcm_new,
|
||||
|
|
Loading…
Reference in New Issue