]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: AMD: Add const to snd_soc_ops instances
authorAkshu Agrawal <akshu.agrawal@amd.com>
Tue, 8 May 2018 04:47:52 +0000 (10:17 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 21 May 2018 15:19:32 +0000 (16:19 +0100)
Marking snd_soc_ops instances const

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-da7219-max98357a.c

index fa5ad5b468a2b51da72c6b70f9cef2eacac88ed6..133139dbcb064b4d2a83834c956213de9b5f6d0d 100644 (file)
@@ -171,17 +171,17 @@ static void cz_dmic_shutdown(struct snd_pcm_substream *substream)
        da7219_clk_disable();
 }
 
-static struct snd_soc_ops cz_da7219_cap_ops = {
+static const struct snd_soc_ops cz_da7219_cap_ops = {
        .startup = cz_da7219_startup,
        .shutdown = cz_da7219_shutdown,
 };
 
-static struct snd_soc_ops cz_max_play_ops = {
+static const struct snd_soc_ops cz_max_play_ops = {
        .startup = cz_max_startup,
        .shutdown = cz_max_shutdown,
 };
 
-static struct snd_soc_ops cz_dmic_cap_ops = {
+static const struct snd_soc_ops cz_dmic_cap_ops = {
        .startup = cz_dmic_startup,
        .shutdown = cz_dmic_shutdown,
 };