Commit f5fe8c45 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mark Brown

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2bd6bf03
......@@ -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,
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment