Skip to content

Commit 42271d9

Browse files
goyalbhumikabroonie
authored andcommitted
ASoC: txx9: make snd_soc_platform_driver const
Make this const as it is only passed as the 2nd argument to the function devm_snd_soc_register_platform, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 5771a8c commit 42271d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/txx9/txx9aclc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static int txx9aclc_pcm_remove(struct snd_soc_platform *platform)
403403
return 0;
404404
}
405405

406-
static struct snd_soc_platform_driver txx9aclc_soc_platform = {
406+
static const struct snd_soc_platform_driver txx9aclc_soc_platform = {
407407
.probe = txx9aclc_pcm_probe,
408408
.remove = txx9aclc_pcm_remove,
409409
.ops = &txx9aclc_pcm_ops,

0 commit comments

Comments
 (0)