[alsa-devel] [PATCH] ASoC: soc-utils: add const to dummy_codec

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Nov 20 03:45:36 CET 2017


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

Let's align dummy_platform and dummy_codec

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
 sound/soc/soc-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index e30aacb..bcd3da2 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -288,7 +288,7 @@ static int dummy_dma_open(struct snd_pcm_substream *substream)
 	.ops = &dummy_dma_ops,
 };
 
-static struct snd_soc_codec_driver dummy_codec;
+static const struct snd_soc_codec_driver dummy_codec;
 
 #define STUB_RATES	SNDRV_PCM_RATE_8000_192000
 #define STUB_FORMATS	(SNDRV_PCM_FMTBIT_S8 | \
-- 
1.9.1



More information about the Alsa-devel mailing list