Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1713140
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] ASoC: bcm: make snd_soc_dai_driver const |
| Date | 2017-08-16 19:20 +0200 |
| Message-ID | <ufa93-1so-1@gated-at.bofh.it> (permalink) |
| References | <ufa93-1so-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Make this const as it is only used during a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/bcm/cygnus-ssp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c
index 1a57a4e..15c438f 100644
--- a/sound/soc/bcm/cygnus-ssp.c
+++ b/sound/soc/bcm/cygnus-ssp.c
@@ -1165,7 +1165,7 @@ static int cygnus_ssp_resume(struct snd_soc_dai *cpu_dai)
INIT_CPU_DAI(2),
};
-static struct snd_soc_dai_driver cygnus_spdif_dai_info = {
+static const struct snd_soc_dai_driver cygnus_spdif_dai_info = {
.name = "cygnus-spdif",
.playback = {
.channels_min = 2,
--
1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] ASoC: bcm: make snd_soc_dai_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-16 19:20 +0200 Applied "ASoC: bcm: make snd_soc_dai_driver const" to the asoc tree Mark Brown <broonie@kernel.org> - 2017-08-17 19:30 +0200
csiph-web