linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] ASoC: make snd_soc_ops const
@ 2017-08-16 16:59 Bhumika Goyal
  2017-08-16 16:59 ` [PATCH 1/7] ASoC: aux1x: " Bhumika Goyal
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Bhumika Goyal @ 2017-08-16 16:59 UTC (permalink / raw)
  To: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip
  Cc: Bhumika Goyal

Make these const. Done using Coccinelle.

Bhumika Goyal (7):
  ASoC: aux1x: make snd_soc_ops const
  ASoC: cirrus: make snd_soc_ops const
  ASoC: generic: make snd_soc_ops const
  ASoC: pxa: make snd_soc_ops const
  ASoC: rockchip: make snd_soc_ops const
  ASoC: samsung: make snd_soc_ops const
  ASoC: sh: make snd_soc_ops const

 sound/soc/au1x/db1200.c                  | 2 +-
 sound/soc/cirrus/edb93xx.c               | 2 +-
 sound/soc/cirrus/snappercl15.c           | 2 +-
 sound/soc/generic/audio-graph-card.c     | 2 +-
 sound/soc/generic/audio-graph-scu-card.c | 2 +-
 sound/soc/pxa/raumfeld.c                 | 2 +-
 sound/soc/rockchip/rk3288_hdmi_analog.c  | 2 +-
 sound/soc/samsung/jive_wm8750.c          | 2 +-
 sound/soc/samsung/s3c24xx_simtec.c       | 2 +-
 sound/soc/samsung/s3c24xx_uda134x.c      | 2 +-
 sound/soc/samsung/smdk_spdif.c           | 2 +-
 sound/soc/sh/migor.c                     | 2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)

-- 
1.9.1

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

* [PATCH 1/7] ASoC: aux1x: make snd_soc_ops const
  2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal
@ 2017-08-16 16:59 ` Bhumika Goyal
  2017-08-17 17:13   ` Applied "ASoC: aux1x: make snd_soc_ops const" to the asoc tree Mark Brown
  2017-08-16 16:59 ` [PATCH 2/7] ASoC: cirrus: make snd_soc_ops const Bhumika Goyal
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 15+ messages in thread
From: Bhumika Goyal @ 2017-08-16 16:59 UTC (permalink / raw)
  To: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip
  Cc: Bhumika Goyal

Make this const as it is only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 sound/soc/au1x/db1200.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index 5c73061..301e1fc 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -99,7 +99,7 @@ static int db1200_i2s_startup(struct snd_pcm_substream *substream)
 	return 0;
 }
 
-static struct snd_soc_ops db1200_i2s_wm8731_ops = {
+static const struct snd_soc_ops db1200_i2s_wm8731_ops = {
 	.startup	= db1200_i2s_startup,
 };
 
-- 
1.9.1

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

* [PATCH 2/7] ASoC: cirrus: make snd_soc_ops const
  2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal
  2017-08-16 16:59 ` [PATCH 1/7] ASoC: aux1x: " Bhumika Goyal
@ 2017-08-16 16:59 ` Bhumika Goyal
  2017-08-17 17:13   ` Applied "ASoC: cirrus: make snd_soc_ops const" to the asoc tree Mark Brown
  2017-08-16 16:59 ` [PATCH 3/7] ASoC: generic: make snd_soc_ops const Bhumika Goyal
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 15+ messages in thread
From: Bhumika Goyal @ 2017-08-16 16:59 UTC (permalink / raw)
  To: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip
  Cc: Bhumika Goyal

Make these const as they are only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 sound/soc/cirrus/edb93xx.c     | 2 +-
 sound/soc/cirrus/snappercl15.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/cirrus/edb93xx.c b/sound/soc/cirrus/edb93xx.c
index 85962657..c53bd6f 100644
--- a/sound/soc/cirrus/edb93xx.c
+++ b/sound/soc/cirrus/edb93xx.c
@@ -56,7 +56,7 @@ static int edb93xx_hw_params(struct snd_pcm_substream *substream,
 				      SND_SOC_CLOCK_OUT);
 }
 
-static struct snd_soc_ops edb93xx_ops = {
+static const struct snd_soc_ops edb93xx_ops = {
 	.hw_params	= edb93xx_hw_params,
 };
 
diff --git a/sound/soc/cirrus/snappercl15.c b/sound/soc/cirrus/snappercl15.c
index 98089df..2334ec1 100644
--- a/sound/soc/cirrus/snappercl15.c
+++ b/sound/soc/cirrus/snappercl15.c
@@ -45,7 +45,7 @@ static int snappercl15_hw_params(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static struct snd_soc_ops snappercl15_ops = {
+static const struct snd_soc_ops snappercl15_ops = {
 	.hw_params	= snappercl15_hw_params,
 };
 
-- 
1.9.1

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

* [PATCH 3/7] ASoC: generic: make snd_soc_ops const
  2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal
  2017-08-16 16:59 ` [PATCH 1/7] ASoC: aux1x: " Bhumika Goyal
  2017-08-16 16:59 ` [PATCH 2/7] ASoC: cirrus: make snd_soc_ops const Bhumika Goyal
@ 2017-08-16 16:59 ` Bhumika Goyal
  2017-08-17 17:13   ` Applied "ASoC: generic: make snd_soc_ops const" to the asoc tree Mark Brown
  2017-08-16 16:59 ` [PATCH 4/7] ASoC: pxa: make snd_soc_ops const Bhumika Goyal
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 15+ messages in thread
From: Bhumika Goyal @ 2017-08-16 16:59 UTC (permalink / raw)
  To: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip
  Cc: Bhumika Goyal

Make these const as they are only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 sound/soc/generic/audio-graph-card.c     | 2 +-
 sound/soc/generic/audio-graph-scu-card.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c
index de2550c..2f7c8cf 100644
--- a/sound/soc/generic/audio-graph-card.c
+++ b/sound/soc/generic/audio-graph-card.c
@@ -95,7 +95,7 @@ static void asoc_graph_card_shutdown(struct snd_pcm_substream *substream)
 	asoc_simple_card_clk_disable(&dai_props->codec_dai);
 }
 
-static struct snd_soc_ops asoc_graph_card_ops = {
+static const struct snd_soc_ops asoc_graph_card_ops = {
 	.startup = asoc_graph_card_startup,
 	.shutdown = asoc_graph_card_shutdown,
 };
diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c
index 758ac06..06b6fcf 100644
--- a/sound/soc/generic/audio-graph-scu-card.c
+++ b/sound/soc/generic/audio-graph-scu-card.c
@@ -56,7 +56,7 @@ static void asoc_graph_card_shutdown(struct snd_pcm_substream *substream)
 	asoc_simple_card_clk_disable(dai_props);
 }
 
-static struct snd_soc_ops asoc_graph_card_ops = {
+static const struct snd_soc_ops asoc_graph_card_ops = {
 	.startup = asoc_graph_card_startup,
 	.shutdown = asoc_graph_card_shutdown,
 };
-- 
1.9.1

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

* [PATCH 4/7] ASoC: pxa: make snd_soc_ops const
  2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal
                   ` (2 preceding siblings ...)
  2017-08-16 16:59 ` [PATCH 3/7] ASoC: generic: make snd_soc_ops const Bhumika Goyal
@ 2017-08-16 16:59 ` Bhumika Goyal
  2017-08-16 16:59 ` [PATCH 5/7] ASoC: rockchip: " Bhumika Goyal
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 15+ messages in thread
From: Bhumika Goyal @ 2017-08-16 16:59 UTC (permalink / raw)
  To: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip
  Cc: Bhumika Goyal

Make this const as it is only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 sound/soc/pxa/raumfeld.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/pxa/raumfeld.c b/sound/soc/pxa/raumfeld.c
index 111a907..43f6ab7 100644
--- a/sound/soc/pxa/raumfeld.c
+++ b/sound/soc/pxa/raumfeld.c
@@ -196,7 +196,7 @@ static int raumfeld_ak4104_hw_params(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static struct snd_soc_ops raumfeld_ak4104_ops = {
+static const struct snd_soc_ops raumfeld_ak4104_ops = {
 	.hw_params = raumfeld_ak4104_hw_params,
 };
 
-- 
1.9.1

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

* [PATCH 5/7] ASoC: rockchip: make snd_soc_ops const
  2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal
                   ` (3 preceding siblings ...)
  2017-08-16 16:59 ` [PATCH 4/7] ASoC: pxa: make snd_soc_ops const Bhumika Goyal
@ 2017-08-16 16:59 ` Bhumika Goyal
  2017-08-17 17:13   ` Applied "ASoC: rockchip: make snd_soc_ops const" to the asoc tree Mark Brown
  2017-08-16 16:59 ` [PATCH 6/7] ASoC: samsung: make snd_soc_ops const Bhumika Goyal
  2017-08-16 16:59 ` [PATCH 7/7] ASoC: sh: make snd_soc_ops const Bhumika Goyal
  6 siblings, 1 reply; 15+ messages in thread
From: Bhumika Goyal @ 2017-08-16 16:59 UTC (permalink / raw)
  To: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip
  Cc: Bhumika Goyal

Make this const as it is only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 sound/soc/rockchip/rk3288_hdmi_analog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c
index dbc53e4..42227b0 100644
--- a/sound/soc/rockchip/rk3288_hdmi_analog.c
+++ b/sound/soc/rockchip/rk3288_hdmi_analog.c
@@ -147,7 +147,7 @@ static int rk_init(struct snd_soc_pcm_runtime *runtime)
 	return 0;
 }
 
-static struct snd_soc_ops rk_ops = {
+static const struct snd_soc_ops rk_ops = {
 	.hw_params = rk_hw_params,
 };
 
-- 
1.9.1

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

* [PATCH 6/7] ASoC: samsung: make snd_soc_ops const
  2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal
                   ` (4 preceding siblings ...)
  2017-08-16 16:59 ` [PATCH 5/7] ASoC: rockchip: " Bhumika Goyal
@ 2017-08-16 16:59 ` Bhumika Goyal
  2017-08-16 19:22   ` Krzysztof Kozlowski
  2017-08-17 17:13   ` Applied "ASoC: samsung: make snd_soc_ops const" to the asoc tree Mark Brown
  2017-08-16 16:59 ` [PATCH 7/7] ASoC: sh: make snd_soc_ops const Bhumika Goyal
  6 siblings, 2 replies; 15+ messages in thread
From: Bhumika Goyal @ 2017-08-16 16:59 UTC (permalink / raw)
  To: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip
  Cc: Bhumika Goyal

Make these const as they are only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 sound/soc/samsung/jive_wm8750.c     | 2 +-
 sound/soc/samsung/s3c24xx_simtec.c  | 2 +-
 sound/soc/samsung/s3c24xx_uda134x.c | 2 +-
 sound/soc/samsung/smdk_spdif.c      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/soc/samsung/jive_wm8750.c b/sound/soc/samsung/jive_wm8750.c
index 7fcb51f..529b10d 100644
--- a/sound/soc/samsung/jive_wm8750.c
+++ b/sound/soc/samsung/jive_wm8750.c
@@ -79,7 +79,7 @@ static int jive_hw_params(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static struct snd_soc_ops jive_ops = {
+static const struct snd_soc_ops jive_ops = {
 	.hw_params	= jive_hw_params,
 };
 
diff --git a/sound/soc/samsung/s3c24xx_simtec.c b/sound/soc/samsung/s3c24xx_simtec.c
index dcc008d..6de63f3 100644
--- a/sound/soc/samsung/s3c24xx_simtec.c
+++ b/sound/soc/samsung/s3c24xx_simtec.c
@@ -211,7 +211,7 @@ static int simtec_call_startup(struct s3c24xx_audio_simtec_pdata *pd)
 	return 0;
 }
 
-static struct snd_soc_ops simtec_snd_ops = {
+static const struct snd_soc_ops simtec_snd_ops = {
 	.hw_params	= simtec_hw_params,
 };
 
diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c
index 55538e3..c65c89d 100644
--- a/sound/soc/samsung/s3c24xx_uda134x.c
+++ b/sound/soc/samsung/s3c24xx_uda134x.c
@@ -199,7 +199,7 @@ static int s3c24xx_uda134x_hw_params(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static struct snd_soc_ops s3c24xx_uda134x_ops = {
+static const struct snd_soc_ops s3c24xx_uda134x_ops = {
 	.startup = s3c24xx_uda134x_startup,
 	.shutdown = s3c24xx_uda134x_shutdown,
 	.hw_params = s3c24xx_uda134x_hw_params,
diff --git a/sound/soc/samsung/smdk_spdif.c b/sound/soc/samsung/smdk_spdif.c
index a2f2363..7fc7cc6 100644
--- a/sound/soc/samsung/smdk_spdif.c
+++ b/sound/soc/samsung/smdk_spdif.c
@@ -144,7 +144,7 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,
 	return ret;
 }
 
-static struct snd_soc_ops smdk_spdif_ops = {
+static const struct snd_soc_ops smdk_spdif_ops = {
 	.hw_params = smdk_hw_params,
 };
 
-- 
1.9.1

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

* [PATCH 7/7] ASoC: sh: make snd_soc_ops const
  2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal
                   ` (5 preceding siblings ...)
  2017-08-16 16:59 ` [PATCH 6/7] ASoC: samsung: make snd_soc_ops const Bhumika Goyal
@ 2017-08-16 16:59 ` Bhumika Goyal
  2017-08-17 17:12   ` Applied "ASoC: sh: make snd_soc_ops const" to the asoc tree Mark Brown
  6 siblings, 1 reply; 15+ messages in thread
From: Bhumika Goyal @ 2017-08-16 16:59 UTC (permalink / raw)
  To: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip
  Cc: Bhumika Goyal

Make this const as it is only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 sound/soc/sh/migor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sh/migor.c b/sound/soc/sh/migor.c
index 672bcd4..ecb057f 100644
--- a/sound/soc/sh/migor.c
+++ b/sound/soc/sh/migor.c
@@ -98,7 +98,7 @@ static int migor_hw_free(struct snd_pcm_substream *substream)
 	return 0;
 }
 
-static struct snd_soc_ops migor_dai_ops = {
+static const struct snd_soc_ops migor_dai_ops = {
 	.hw_params = migor_hw_params,
 	.hw_free = migor_hw_free,
 };
-- 
1.9.1

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

* Re: [PATCH 6/7] ASoC: samsung: make snd_soc_ops const
  2017-08-16 16:59 ` [PATCH 6/7] ASoC: samsung: make snd_soc_ops const Bhumika Goyal
@ 2017-08-16 19:22   ` Krzysztof Kozlowski
  2017-08-17 17:13   ` Applied "ASoC: samsung: make snd_soc_ops const" to the asoc tree Mark Brown
  1 sibling, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2017-08-16 19:22 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: julia.lawall, lgirdwood, broonie, perex, tiwai, daniel,
	haojian.zhuang, robert.jarzmik, heiko, sbkim73, s.nawrocki,
	alsa-devel, linux-kernel, linux-arm-kernel, linux-rockchip

On Wed, Aug 16, 2017 at 10:29:29PM +0530, Bhumika Goyal wrote:
> Make these const as they are only stored in the ops field of a
> snd_soc_dai_link structure, which is const.
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---
>  sound/soc/samsung/jive_wm8750.c     | 2 +-
>  sound/soc/samsung/s3c24xx_simtec.c  | 2 +-
>  sound/soc/samsung/s3c24xx_uda134x.c | 2 +-
>  sound/soc/samsung/smdk_spdif.c      | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)
> 

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof

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

* Applied "ASoC: sh: make snd_soc_ops const" to the asoc tree
  2017-08-16 16:59 ` [PATCH 7/7] ASoC: sh: make snd_soc_ops const Bhumika Goyal
@ 2017-08-17 17:12   ` Mark Brown
  0 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2017-08-17 17:12 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: Mark Brown, julia.lawall, lgirdwood, broonie, perex, tiwai,
	daniel, haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73,
	s.nawrocki, alsa-devel, linux-kernel, linux-arm-kernel,
	linux-rockchip, alsa-devel

The patch

   ASoC: sh: make snd_soc_ops const

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 a46d0592d164c017342d2d86e5d123735ec046ae Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <bhumirks@gmail.com>
Date: Wed, 16 Aug 2017 22:29:30 +0530
Subject: [PATCH] ASoC: sh: make snd_soc_ops const

Make this const as it is only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/sh/migor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sh/migor.c b/sound/soc/sh/migor.c
index 672bcd4c252b..ecb057ff9fbb 100644
--- a/sound/soc/sh/migor.c
+++ b/sound/soc/sh/migor.c
@@ -98,7 +98,7 @@ static int migor_hw_free(struct snd_pcm_substream *substream)
 	return 0;
 }
 
-static struct snd_soc_ops migor_dai_ops = {
+static const struct snd_soc_ops migor_dai_ops = {
 	.hw_params = migor_hw_params,
 	.hw_free = migor_hw_free,
 };
-- 
2.13.3

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

* Applied "ASoC: samsung: make snd_soc_ops const" to the asoc tree
  2017-08-16 16:59 ` [PATCH 6/7] ASoC: samsung: make snd_soc_ops const Bhumika Goyal
  2017-08-16 19:22   ` Krzysztof Kozlowski
@ 2017-08-17 17:13   ` Mark Brown
  1 sibling, 0 replies; 15+ messages in thread
From: Mark Brown @ 2017-08-17 17:13 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: Mark Brown, julia.lawall, lgirdwood, broonie, perex, tiwai,
	daniel, haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73,
	s.nawrocki, alsa-devel, linux-kernel, linux-arm-kernel,
	linux-rockchip, alsa-devel

The patch

   ASoC: samsung: make snd_soc_ops const

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 2af236391f5a167630ebca0eced832afcc4634e0 Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <bhumirks@gmail.com>
Date: Wed, 16 Aug 2017 22:29:29 +0530
Subject: [PATCH] ASoC: samsung: make snd_soc_ops const

Make these const as they are only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/samsung/jive_wm8750.c     | 2 +-
 sound/soc/samsung/s3c24xx_simtec.c  | 2 +-
 sound/soc/samsung/s3c24xx_uda134x.c | 2 +-
 sound/soc/samsung/smdk_spdif.c      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/soc/samsung/jive_wm8750.c b/sound/soc/samsung/jive_wm8750.c
index 7fcb51faa2a0..529b10dc532b 100644
--- a/sound/soc/samsung/jive_wm8750.c
+++ b/sound/soc/samsung/jive_wm8750.c
@@ -79,7 +79,7 @@ static int jive_hw_params(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static struct snd_soc_ops jive_ops = {
+static const struct snd_soc_ops jive_ops = {
 	.hw_params	= jive_hw_params,
 };
 
diff --git a/sound/soc/samsung/s3c24xx_simtec.c b/sound/soc/samsung/s3c24xx_simtec.c
index dcc008d1e1ab..6de63f3e37d5 100644
--- a/sound/soc/samsung/s3c24xx_simtec.c
+++ b/sound/soc/samsung/s3c24xx_simtec.c
@@ -211,7 +211,7 @@ static int simtec_call_startup(struct s3c24xx_audio_simtec_pdata *pd)
 	return 0;
 }
 
-static struct snd_soc_ops simtec_snd_ops = {
+static const struct snd_soc_ops simtec_snd_ops = {
 	.hw_params	= simtec_hw_params,
 };
 
diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c
index 55538e333cc8..c65c89d4aaa6 100644
--- a/sound/soc/samsung/s3c24xx_uda134x.c
+++ b/sound/soc/samsung/s3c24xx_uda134x.c
@@ -199,7 +199,7 @@ static int s3c24xx_uda134x_hw_params(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static struct snd_soc_ops s3c24xx_uda134x_ops = {
+static const struct snd_soc_ops s3c24xx_uda134x_ops = {
 	.startup = s3c24xx_uda134x_startup,
 	.shutdown = s3c24xx_uda134x_shutdown,
 	.hw_params = s3c24xx_uda134x_hw_params,
diff --git a/sound/soc/samsung/smdk_spdif.c b/sound/soc/samsung/smdk_spdif.c
index a2f2363fe1c2..7fc7cc6d1530 100644
--- a/sound/soc/samsung/smdk_spdif.c
+++ b/sound/soc/samsung/smdk_spdif.c
@@ -144,7 +144,7 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,
 	return ret;
 }
 
-static struct snd_soc_ops smdk_spdif_ops = {
+static const struct snd_soc_ops smdk_spdif_ops = {
 	.hw_params = smdk_hw_params,
 };
 
-- 
2.13.3

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

* Applied "ASoC: rockchip: make snd_soc_ops const" to the asoc tree
  2017-08-16 16:59 ` [PATCH 5/7] ASoC: rockchip: " Bhumika Goyal
@ 2017-08-17 17:13   ` Mark Brown
  0 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2017-08-17 17:13 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: Mark Brown, julia.lawall, lgirdwood, broonie, perex, tiwai,
	daniel, haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73,
	s.nawrocki, alsa-devel, linux-kernel, linux-arm-kernel,
	linux-rockchip, alsa-devel

The patch

   ASoC: rockchip: make snd_soc_ops const

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 c12a4a40b4fdaefa6c2578e86d277410e1a9cea1 Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <bhumirks@gmail.com>
Date: Wed, 16 Aug 2017 22:29:28 +0530
Subject: [PATCH] ASoC: rockchip: make snd_soc_ops const

Make this const as it is only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/rockchip/rk3288_hdmi_analog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c
index dbc53e48c52c..42227b0f66ac 100644
--- a/sound/soc/rockchip/rk3288_hdmi_analog.c
+++ b/sound/soc/rockchip/rk3288_hdmi_analog.c
@@ -147,7 +147,7 @@ static int rk_init(struct snd_soc_pcm_runtime *runtime)
 	return 0;
 }
 
-static struct snd_soc_ops rk_ops = {
+static const struct snd_soc_ops rk_ops = {
 	.hw_params = rk_hw_params,
 };
 
-- 
2.13.3

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

* Applied "ASoC: generic: make snd_soc_ops const" to the asoc tree
  2017-08-16 16:59 ` [PATCH 3/7] ASoC: generic: make snd_soc_ops const Bhumika Goyal
@ 2017-08-17 17:13   ` Mark Brown
  0 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2017-08-17 17:13 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: Mark Brown, julia.lawall, lgirdwood, broonie, perex, tiwai,
	daniel, haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73,
	s.nawrocki, alsa-devel, linux-kernel, linux-arm-kernel,
	linux-rockchip, alsa-devel

The patch

   ASoC: generic: make snd_soc_ops const

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 e23d834876390d6b8d4d35057e9ecd899a44193a Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <bhumirks@gmail.com>
Date: Wed, 16 Aug 2017 22:29:26 +0530
Subject: [PATCH] ASoC: generic: make snd_soc_ops const

Make these const as they are only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/generic/audio-graph-card.c     | 2 +-
 sound/soc/generic/audio-graph-scu-card.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c
index 105ec3a6e30d..d3497a3e14ca 100644
--- a/sound/soc/generic/audio-graph-card.c
+++ b/sound/soc/generic/audio-graph-card.c
@@ -95,7 +95,7 @@ static void asoc_graph_card_shutdown(struct snd_pcm_substream *substream)
 	asoc_simple_card_clk_disable(&dai_props->codec_dai);
 }
 
-static struct snd_soc_ops asoc_graph_card_ops = {
+static const struct snd_soc_ops asoc_graph_card_ops = {
 	.startup = asoc_graph_card_startup,
 	.shutdown = asoc_graph_card_shutdown,
 };
diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c
index dcd2df37bc3b..3da9acd6844e 100644
--- a/sound/soc/generic/audio-graph-scu-card.c
+++ b/sound/soc/generic/audio-graph-scu-card.c
@@ -56,7 +56,7 @@ static void asoc_graph_card_shutdown(struct snd_pcm_substream *substream)
 	asoc_simple_card_clk_disable(dai_props);
 }
 
-static struct snd_soc_ops asoc_graph_card_ops = {
+static const struct snd_soc_ops asoc_graph_card_ops = {
 	.startup = asoc_graph_card_startup,
 	.shutdown = asoc_graph_card_shutdown,
 };
-- 
2.13.3

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

* Applied "ASoC: cirrus: make snd_soc_ops const" to the asoc tree
  2017-08-16 16:59 ` [PATCH 2/7] ASoC: cirrus: make snd_soc_ops const Bhumika Goyal
@ 2017-08-17 17:13   ` Mark Brown
  0 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2017-08-17 17:13 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: Mark Brown, julia.lawall, lgirdwood, broonie, perex, tiwai,
	daniel, haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73,
	s.nawrocki, alsa-devel, linux-kernel, linux-arm-kernel,
	linux-rockchip, alsa-devel

The patch

   ASoC: cirrus: make snd_soc_ops const

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 7f8159acecb3bb58c0d782813dc605ebef63b317 Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <bhumirks@gmail.com>
Date: Wed, 16 Aug 2017 22:29:25 +0530
Subject: [PATCH] ASoC: cirrus: make snd_soc_ops const

Make these const as they are only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/cirrus/edb93xx.c     | 2 +-
 sound/soc/cirrus/snappercl15.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/cirrus/edb93xx.c b/sound/soc/cirrus/edb93xx.c
index 85962657aabe..c53bd6f2c2d7 100644
--- a/sound/soc/cirrus/edb93xx.c
+++ b/sound/soc/cirrus/edb93xx.c
@@ -56,7 +56,7 @@ static int edb93xx_hw_params(struct snd_pcm_substream *substream,
 				      SND_SOC_CLOCK_OUT);
 }
 
-static struct snd_soc_ops edb93xx_ops = {
+static const struct snd_soc_ops edb93xx_ops = {
 	.hw_params	= edb93xx_hw_params,
 };
 
diff --git a/sound/soc/cirrus/snappercl15.c b/sound/soc/cirrus/snappercl15.c
index 98089df08df6..2334ec19e7eb 100644
--- a/sound/soc/cirrus/snappercl15.c
+++ b/sound/soc/cirrus/snappercl15.c
@@ -45,7 +45,7 @@ static int snappercl15_hw_params(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static struct snd_soc_ops snappercl15_ops = {
+static const struct snd_soc_ops snappercl15_ops = {
 	.hw_params	= snappercl15_hw_params,
 };
 
-- 
2.13.3

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

* Applied "ASoC: aux1x: make snd_soc_ops const" to the asoc tree
  2017-08-16 16:59 ` [PATCH 1/7] ASoC: aux1x: " Bhumika Goyal
@ 2017-08-17 17:13   ` Mark Brown
  0 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2017-08-17 17:13 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: Mark Brown, julia.lawall, lgirdwood, broonie, perex, tiwai,
	daniel, haojian.zhuang, robert.jarzmik, heiko, krzk, sbkim73,
	s.nawrocki, alsa-devel, linux-kernel, linux-arm-kernel,
	linux-rockchip, alsa-devel

The patch

   ASoC: aux1x: make snd_soc_ops const

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 052fba77f57b9f243ad3a45a21c809bddcd03627 Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <bhumirks@gmail.com>
Date: Wed, 16 Aug 2017 22:29:24 +0530
Subject: [PATCH] ASoC: aux1x: make snd_soc_ops const

Make this const as it is only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/au1x/db1200.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index 5c73061d912a..301e1fc9a377 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -99,7 +99,7 @@ static int db1200_i2s_startup(struct snd_pcm_substream *substream)
 	return 0;
 }
 
-static struct snd_soc_ops db1200_i2s_wm8731_ops = {
+static const struct snd_soc_ops db1200_i2s_wm8731_ops = {
 	.startup	= db1200_i2s_startup,
 };
 
-- 
2.13.3

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

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

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal
2017-08-16 16:59 ` [PATCH 1/7] ASoC: aux1x: " Bhumika Goyal
2017-08-17 17:13   ` Applied "ASoC: aux1x: make snd_soc_ops const" to the asoc tree Mark Brown
2017-08-16 16:59 ` [PATCH 2/7] ASoC: cirrus: make snd_soc_ops const Bhumika Goyal
2017-08-17 17:13   ` Applied "ASoC: cirrus: make snd_soc_ops const" to the asoc tree Mark Brown
2017-08-16 16:59 ` [PATCH 3/7] ASoC: generic: make snd_soc_ops const Bhumika Goyal
2017-08-17 17:13   ` Applied "ASoC: generic: make snd_soc_ops const" to the asoc tree Mark Brown
2017-08-16 16:59 ` [PATCH 4/7] ASoC: pxa: make snd_soc_ops const Bhumika Goyal
2017-08-16 16:59 ` [PATCH 5/7] ASoC: rockchip: " Bhumika Goyal
2017-08-17 17:13   ` Applied "ASoC: rockchip: make snd_soc_ops const" to the asoc tree Mark Brown
2017-08-16 16:59 ` [PATCH 6/7] ASoC: samsung: make snd_soc_ops const Bhumika Goyal
2017-08-16 19:22   ` Krzysztof Kozlowski
2017-08-17 17:13   ` Applied "ASoC: samsung: make snd_soc_ops const" to the asoc tree Mark Brown
2017-08-16 16:59 ` [PATCH 7/7] ASoC: sh: make snd_soc_ops const Bhumika Goyal
2017-08-17 17:12   ` Applied "ASoC: sh: make snd_soc_ops const" 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;
as well as URLs for NNTP newsgroup(s).