Skip to content

Commit ab566fd

Browse files
ArvindYadavCsbroonie
authored andcommitted
ASoC: ux500: constify snd_soc_dai_ops structures
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by <sound/soc-dai.h> work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 5771a8c commit ab566fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/ux500/ux500_msp_dai.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ static int ux500_msp_dai_probe(struct snd_soc_dai *dai)
707707
return 0;
708708
}
709709

710-
static struct snd_soc_dai_ops ux500_msp_dai_ops[] = {
710+
static const struct snd_soc_dai_ops ux500_msp_dai_ops[] = {
711711
{
712712
.set_sysclk = ux500_msp_dai_set_dai_sysclk,
713713
.set_fmt = ux500_msp_dai_set_dai_fmt,

0 commit comments

Comments
 (0)