mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08:00
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:
parent
2bd6bf03f4
commit
f5fe8c4589
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user