ASoC: kirkwood: make kirkwood_soc_platform const

Make kirkwood_soc_platform const as it only passed to a const argument
of the function snd_soc_register_platform in the file referencing it.
Make the declaration const too.

Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Bhumika Goyal 2017-09-27 21:35:47 +05:30 committed by Mark Brown
parent 2bd6bf03f4
commit f5fe8c4589
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ static void kirkwood_dma_free_dma_buffers(struct snd_pcm *pcm)
}
}
struct snd_soc_platform_driver kirkwood_soc_platform = {
const struct snd_soc_platform_driver kirkwood_soc_platform = {
.ops = &kirkwood_dma_ops,
.pcm_new = kirkwood_dma_new,
.pcm_free = kirkwood_dma_free_dma_buffers,

View File

@ -143,6 +143,6 @@ struct kirkwood_dma_data {
int burst;
};
extern struct snd_soc_platform_driver kirkwood_soc_platform;
extern const struct snd_soc_platform_driver kirkwood_soc_platform;
#endif