Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: qdsp6: q6asm-dai: constify copied structure

The q6asm_dai_hardware_capture structure is only copied into another
structure, so make it const.

The opportunity for this change was found using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Link: https://lore.kernel.org/r/1577864614-5543-11-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Julia Lawall and committed by
Mark Brown
0da390ba 3d8cbeda

+1 -1
+1 -1
sound/soc/qcom/qdsp6/q6asm-dai.c
··· 72 72 long long int sid; 73 73 }; 74 74 75 - static struct snd_pcm_hardware q6asm_dai_hardware_capture = { 75 + static const struct snd_pcm_hardware q6asm_dai_hardware_capture = { 76 76 .info = (SNDRV_PCM_INFO_MMAP | 77 77 SNDRV_PCM_INFO_BLOCK_TRANSFER | 78 78 SNDRV_PCM_INFO_MMAP_VALID |