All of lore.kernel.org
 help / color / mirror / Atom feed
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>, Heiko Stuebner <heiko@sntech.de>,
	alsa-devel@alsa-project.org,
	linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/5] ASoC: rockchip: constify snd_soc_dai_ops structures
Date: Tue, 15 Aug 2017 17:10:09 +0200	[thread overview]
Message-ID: <1502809812-13891-3-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/rockchip/rockchip_pdm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c
index c5ddeed..400e29e 100644
--- a/sound/soc/rockchip/rockchip_pdm.c
+++ b/sound/soc/rockchip/rockchip_pdm.c
@@ -249,7 +249,7 @@ static int rockchip_pdm_dai_probe(struct snd_soc_dai *dai)
 	return 0;
 }
 
-static struct snd_soc_dai_ops rockchip_pdm_dai_ops = {
+static const struct snd_soc_dai_ops rockchip_pdm_dai_ops = {
 	.set_fmt = rockchip_pdm_set_fmt,
 	.trigger = rockchip_pdm_trigger,
 	.hw_params = rockchip_pdm_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>, Heiko Stuebner <heiko@sntech.de>,
	alsa-devel@alsa-project.org,
	linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/5] ASoC: rockchip: constify snd_soc_dai_ops structures
Date: Tue, 15 Aug 2017 15:10:09 +0000	[thread overview]
Message-ID: <1502809812-13891-3-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/rockchip/rockchip_pdm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c
index c5ddeed..400e29e 100644
--- a/sound/soc/rockchip/rockchip_pdm.c
+++ b/sound/soc/rockchip/rockchip_pdm.c
@@ -249,7 +249,7 @@ static int rockchip_pdm_dai_probe(struct snd_soc_dai *dai)
 	return 0;
 }
 
-static struct snd_soc_dai_ops rockchip_pdm_dai_ops = {
+static const struct snd_soc_dai_ops rockchip_pdm_dai_ops = {
 	.set_fmt = rockchip_pdm_set_fmt,
 	.trigger = rockchip_pdm_trigger,
 	.hw_params = rockchip_pdm_hw_params,


WARNING: multiple messages have this Message-ID (diff)
From: Julia.Lawall@lip6.fr (Julia Lawall)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/5] ASoC: rockchip: constify snd_soc_dai_ops structures
Date: Tue, 15 Aug 2017 17:10:09 +0200	[thread overview]
Message-ID: <1502809812-13891-3-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/rockchip/rockchip_pdm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c
index c5ddeed..400e29e 100644
--- a/sound/soc/rockchip/rockchip_pdm.c
+++ b/sound/soc/rockchip/rockchip_pdm.c
@@ -249,7 +249,7 @@ static int rockchip_pdm_dai_probe(struct snd_soc_dai *dai)
 	return 0;
 }
 
-static struct snd_soc_dai_ops rockchip_pdm_dai_ops = {
+static const struct snd_soc_dai_ops rockchip_pdm_dai_ops = {
 	.set_fmt = rockchip_pdm_set_fmt,
 	.trigger = rockchip_pdm_trigger,
 	.hw_params = rockchip_pdm_hw_params,

  parent reply	other threads:[~2017-08-15 15:35 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 ` Julia Lawall [this message]
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 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 ` [PATCH 5/5] ASoC: spear: constify snd_soc_dai_ops structures Julia Lawall
2017-08-15 15:10   ` 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-3-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=heiko@sntech.de \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.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: link
Be 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.