Skip to content

Commit 0da390b

Browse files
JuliaLawallbroonie
authored andcommitted
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>
1 parent 3d8cbed commit 0da390b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/soc/qcom/qdsp6/q6asm-dai.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct q6asm_dai_data {
7272
long long int sid;
7373
};
7474

75-
static struct snd_pcm_hardware q6asm_dai_hardware_capture = {
75+
static const struct snd_pcm_hardware q6asm_dai_hardware_capture = {
7676
.info = (SNDRV_PCM_INFO_MMAP |
7777
SNDRV_PCM_INFO_BLOCK_TRANSFER |
7878
SNDRV_PCM_INFO_MMAP_VALID |

0 commit comments

Comments
 (0)