public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/5] constify snd_soc_dai_ops structures
@ 2017-08-15 15:10 Julia Lawall
  2017-08-15 15:10 ` [PATCH 2/5] ASoC: rockchip: " Julia Lawall
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2017-08-15 15:10 UTC (permalink / raw)
  To: linux-arm-kernel

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.

---

 sound/soc/blackfin/bf6xx-i2s.c    |    2 +-
 sound/soc/codecs/es8316.c         |    2 +-
 sound/soc/codecs/zx_aud96p22.c    |    2 +-
 sound/soc/rockchip/rockchip_pdm.c |    2 +-
 sound/soc/spear/spdif_in.c        |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/5] ASoC: rockchip: constify snd_soc_dai_ops structures
  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 17:15   ` Applied "ASoC: rockchip: constify snd_soc_dai_ops structures" to the asoc tree Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2017-08-15 15:10 UTC (permalink / raw)
  To: linux-arm-kernel

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,

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Applied "ASoC: rockchip: constify snd_soc_dai_ops structures" to the asoc tree
  2017-08-15 15:10 ` [PATCH 2/5] ASoC: rockchip: " Julia Lawall
@ 2017-08-15 17:15   ` Mark Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2017-08-15 17:15 UTC (permalink / raw)
  To: linux-arm-kernel

The patch

   ASoC: rockchip: constify snd_soc_dai_ops structures

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 0966a2588779d0d44706f973c1e8ff240be43017 Mon Sep 17 00:00:00 2001
From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Tue, 15 Aug 2017 17:10:09 +0200
Subject: [PATCH] ASoC: rockchip: constify snd_soc_dai_ops structures

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>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 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 c5ddeed97260..400e29edb1c9 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,
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-15 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15 15:10 [PATCH 0/5] constify snd_soc_dai_ops structures Julia Lawall
2017-08-15 15:10 ` [PATCH 2/5] ASoC: rockchip: " Julia Lawall
2017-08-15 17:15   ` Applied "ASoC: rockchip: constify snd_soc_dai_ops structures" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox