Skip to content

Commit c9f3d34

Browse files
goyalbhumikabroonie
authored andcommitted
ASoC: soc-utils: make snd_soc_platform_driver const
Make this const as it is only passed as the 2nd argument to the function 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 c9f3d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/soc-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static const struct snd_pcm_ops dummy_dma_ops = {
284284
.ioctl = snd_pcm_lib_ioctl,
285285
};
286286

287-
static struct snd_soc_platform_driver dummy_platform = {
287+
static const struct snd_soc_platform_driver dummy_platform = {
288288
.ops = &dummy_dma_ops,
289289
};
290290

0 commit comments

Comments
 (0)