ASoC: qdsp6: q6asm-dai: constify copied structure
authorJulia Lawall <Julia.Lawall@inria.fr>
Wed, 1 Jan 2020 07:43:28 +0000 (08:43 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jan 2020 21:38:48 +0000 (21:38 +0000)
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>
sound/soc/qcom/qdsp6/q6asm-dai.c

index 5e23277087727a62d0b75a85678e5ec4ea8ce3a6..c0d422d0ab94fd33c254743885726473e54f2f33 100644 (file)
@@ -72,7 +72,7 @@ struct q6asm_dai_data {
        long long int sid;
 };
 
-static struct snd_pcm_hardware q6asm_dai_hardware_capture = {
+static const struct snd_pcm_hardware q6asm_dai_hardware_capture = {
        .info =                 (SNDRV_PCM_INFO_MMAP |
                                SNDRV_PCM_INFO_BLOCK_TRANSFER |
                                SNDRV_PCM_INFO_MMAP_VALID |