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
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
.ops = &kirkwood_dma_ops,
|
||||||
.pcm_new = kirkwood_dma_new,
|
.pcm_new = kirkwood_dma_new,
|
||||||
.pcm_free = kirkwood_dma_free_dma_buffers,
|
.pcm_free = kirkwood_dma_free_dma_buffers,
|
||||||
|
|
|
@ -143,6 +143,6 @@ struct kirkwood_dma_data {
|
||||||
int burst;
|
int burst;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct snd_soc_platform_driver kirkwood_soc_platform;
|
extern const struct snd_soc_platform_driver kirkwood_soc_platform;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue