From: Julia Lawall <Julia.Lawall@lip6.fr> To: Liam Girdwood <lgirdwood@gmail.com> Cc: bhumirks@gmail.com, kernel-janitors@vger.kernel.org, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] ASoC: spear: constify snd_soc_dai_ops structures Date: Tue, 15 Aug 2017 17:10:12 +0200 [thread overview] Message-ID: <1502809812-13891-6-git-send-email-Julia.Lawall@lip6.fr> (raw) In-Reply-To: <1502809812-13891-1-git-send-email-Julia.Lawall@lip6.fr> These snd_soc_dai_ops structures are only stored in the ops field of a snd_soc_dai_driver structure, which is const. Thus, the snd_soc_dai_ops structures can be const too. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> --- sound/soc/spear/spdif_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/spear/spdif_in.c b/sound/soc/spear/spdif_in.c index 01b28e5..78a6a36 100644 --- a/sound/soc/spear/spdif_in.c +++ b/sound/soc/spear/spdif_in.c @@ -151,7 +151,7 @@ static int spdif_in_trigger(struct snd_pcm_substream *substream, int cmd, return ret; } -static struct snd_soc_dai_ops spdif_in_dai_ops = { +static const struct snd_soc_dai_ops spdif_in_dai_ops = { .shutdown = spdif_in_shutdown, .trigger = spdif_in_trigger, .hw_params = spdif_in_hw_params,
WARNING: multiple messages have this Message-ID (diff)
From: Julia Lawall <Julia.Lawall@lip6.fr> To: Liam Girdwood <lgirdwood@gmail.com> Cc: bhumirks@gmail.com, kernel-janitors@vger.kernel.org, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] ASoC: spear: constify snd_soc_dai_ops structures Date: Tue, 15 Aug 2017 15:10:12 +0000 [thread overview] Message-ID: <1502809812-13891-6-git-send-email-Julia.Lawall@lip6.fr> (raw) In-Reply-To: <1502809812-13891-1-git-send-email-Julia.Lawall@lip6.fr> These snd_soc_dai_ops structures are only stored in the ops field of a snd_soc_dai_driver structure, which is const. Thus, the snd_soc_dai_ops structures can be const too. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> --- sound/soc/spear/spdif_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/spear/spdif_in.c b/sound/soc/spear/spdif_in.c index 01b28e5..78a6a36 100644 --- a/sound/soc/spear/spdif_in.c +++ b/sound/soc/spear/spdif_in.c @@ -151,7 +151,7 @@ static int spdif_in_trigger(struct snd_pcm_substream *substream, int cmd, return ret; } -static struct snd_soc_dai_ops spdif_in_dai_ops = { +static const struct snd_soc_dai_ops spdif_in_dai_ops = { .shutdown = spdif_in_shutdown, .trigger = spdif_in_trigger, .hw_params = spdif_in_hw_params,
next prev parent reply other threads:[~2017-08-15 15:36 UTC|newest] Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-08-15 15:10 [PATCH 0/5] constify snd_soc_dai_ops structures Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 15:10 ` [PATCH 1/5] ASoC: blackfin: " Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 17:15 ` Applied "ASoC: blackfin: constify snd_soc_dai_ops structures" to the asoc tree Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 15:10 ` [PATCH 2/5] ASoC: rockchip: constify snd_soc_dai_ops structures Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 17:15 ` Applied "ASoC: rockchip: constify snd_soc_dai_ops structures" to the asoc tree Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 15:10 ` [PATCH 3/5] ASoC: codecs: es8316: constify snd_soc_dai_ops structures Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 17:15 ` Applied "ASoC: codecs: es8316: constify snd_soc_dai_ops structures" to the asoc tree Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 15:10 ` [PATCH 4/5] ASoC: codecs: zx_aud96p22: constify snd_soc_dai_ops structures Julia Lawall 2017-08-15 15:10 ` Julia Lawall 2017-08-15 17:15 ` Applied "ASoC: codecs: zx_aud96p22: constify snd_soc_dai_ops structures" to the asoc tree Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 17:15 ` Mark Brown 2017-08-15 15:10 ` Julia Lawall [this message] 2017-08-15 15:10 ` [PATCH 5/5] ASoC: spear: constify snd_soc_dai_ops structures Julia Lawall
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1502809812-13891-6-git-send-email-Julia.Lawall@lip6.fr \ --to=julia.lawall@lip6.fr \ --cc=alsa-devel@alsa-project.org \ --cc=bhumirks@gmail.com \ --cc=broonie@kernel.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=lgirdwood@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=perex@perex.cz \ --cc=tiwai@suse.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.