diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-09-27 12:05:47 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-09-27 13:02:18 -0400 |
commit | f5fe8c4589740bf45fd19c348e67981e977697cb (patch) | |
tree | 3f0f10d2b7323c329c9d7619c31a2acd1dfe875f | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) |
ASoC: kirkwood: make kirkwood_soc_platform const
Make kirkwood_soc_platform const as it only passed to a const argument
of the function snd_soc_register_platform in the file referencing it.
Make the declaration const too.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/kirkwood/kirkwood-dma.c | 2 | ||||
-rw-r--r-- | sound/soc/kirkwood/kirkwood.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/kirkwood/kirkwood-dma.c b/sound/soc/kirkwood/kirkwood-dma.c index cf23af159acf..505b0ff03c3b 100644 --- a/sound/soc/kirkwood/kirkwood-dma.c +++ b/sound/soc/kirkwood/kirkwood-dma.c | |||
@@ -318,7 +318,7 @@ static void kirkwood_dma_free_dma_buffers(struct snd_pcm *pcm) | |||
318 | } | 318 | } |
319 | } | 319 | } |
320 | 320 | ||
321 | struct snd_soc_platform_driver kirkwood_soc_platform = { | 321 | const struct snd_soc_platform_driver kirkwood_soc_platform = { |
322 | .ops = &kirkwood_dma_ops, | 322 | .ops = &kirkwood_dma_ops, |
323 | .pcm_new = kirkwood_dma_new, | 323 | .pcm_new = kirkwood_dma_new, |
324 | .pcm_free = kirkwood_dma_free_dma_buffers, | 324 | .pcm_free = kirkwood_dma_free_dma_buffers, |
diff --git a/sound/soc/kirkwood/kirkwood.h b/sound/soc/kirkwood/kirkwood.h index 90e32a781424..783cb1a4f30e 100644 --- a/sound/soc/kirkwood/kirkwood.h +++ b/sound/soc/kirkwood/kirkwood.h | |||
@@ -143,6 +143,6 @@ struct kirkwood_dma_data { | |||
143 | int burst; | 143 | int burst; |
144 | }; | 144 | }; |
145 | 145 | ||
146 | extern struct snd_soc_platform_driver kirkwood_soc_platform; | 146 | extern const struct snd_soc_platform_driver kirkwood_soc_platform; |
147 | 147 | ||
148 | #endif | 148 | #endif |