ASoC: make snd_soc_ops const
Subsystems (6)
cover ASoC: make snd_soc_ops const
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(-)
Signature · 1 line
1.9.1
PATCH 1/7 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.
--- sound/soc/au1x/db1200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/au1x/db1200.c +1 -1
@@ -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, };
Signature · 1 line
1.9.1
PATCH 2/7 ASoC: cirrus: make snd_soc_ops const
In reply to Bhumika GoyalMake these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const.
Done using Coccinelle.
--- sound/soc/cirrus/edb93xx.c | 2 +- sound/soc/cirrus/snappercl15.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/cirrus/edb93xx.c +1 -1
@@ -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, };
sound/soc/cirrus/snappercl15.c +1 -1
@@ -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, };
Signature · 1 line
1.9.1
PATCH 3/7 ASoC: generic: make snd_soc_ops const
In reply to Bhumika GoyalMake these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const.
Done using Coccinelle.
--- sound/soc/generic/audio-graph-card.c | 2 +- sound/soc/generic/audio-graph-scu-card.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/generic/audio-graph-card.c +1 -1
@@ -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, };
sound/soc/generic/audio-graph-scu-card.c +1 -1
@@ -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, };
Signature · 1 line
1.9.1
PATCH 4/7 ASoC: pxa: make snd_soc_ops const
In reply to Bhumika GoyalMake this const as it is only stored in the ops field of a snd_soc_dai_link structure, which is const.
Done using Coccinelle.
--- sound/soc/pxa/raumfeld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/pxa/raumfeld.c +1 -1
@@ -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, };
Signature · 1 line
1.9.1
PATCH 5/7 ASoC: rockchip: make snd_soc_ops const
In reply to Bhumika GoyalMake this const as it is only stored in the ops field of a snd_soc_dai_link structure, which is const.
Done using Coccinelle
--- sound/soc/rockchip/rk3288_hdmi_analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/rockchip/rk3288_hdmi_analog.c +1 -1
@@ -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, };
Signature · 1 line
1.9.1
PATCH 6/7 ASoC: samsung: make snd_soc_ops const
In reply to Bhumika GoyalMake these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const.
Done using Coccinelle.
--- 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(-)
sound/soc/samsung/jive_wm8750.c +1 -1
@@ -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, };
sound/soc/samsung/s3c24xx_simtec.c +1 -1
@@ -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, };
sound/soc/samsung/s3c24xx_uda134x.c +1 -1
@@ -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,
sound/soc/samsung/smdk_spdif.c +1 -1
@@ -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, };
Signature · 1 line
1.9.1
PATCH 7/7 ASoC: sh: make snd_soc_ops const
In reply to Bhumika GoyalMake this const as it is only stored in the ops field of a snd_soc_dai_link structure, which is const.
Done using Coccinelle.
--- sound/soc/sh/migor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sh/migor.c +1 -1
@@ -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, };
Signature · 1 line
1.9.1
Re: [PATCH 6/7] ASoC: samsung: make snd_soc_ops const
In reply to Bhumika GoyalQuoted 4 lines · Bhumika Goyal
Make these const as they are only stored in the ops field of a
snd_soc_dai_linkstructure, which is const.
Done using Coccinelle.
Quoted 8 lines
Signed-off-by Bhumika Goyal <[email protected]>--- 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(-)
Best regards,
Krzysztof
Mark Brown
maintainerApplied "ASoC: sh: make snd_soc_ops const" to the asoc tree
In reply to Bhumika GoyalThe 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
Quoted 1 line
From
a46d0592d164c017342d2d86e5d123735ec046aeMon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
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.
--- sound/soc/sh/migor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sh/migor.c +1 -1
@@ -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, };
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: samsung: make snd_soc_ops const" to the asoc tree
In reply to Bhumika GoyalThe 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
Quoted 1 line
From
2af236391f5a167630ebca0eced832afcc4634e0Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
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.
--- 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(-)
sound/soc/samsung/jive_wm8750.c +1 -1
@@ -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, };
sound/soc/samsung/s3c24xx_simtec.c +1 -1
@@ -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, };
sound/soc/samsung/s3c24xx_uda134x.c +1 -1
@@ -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,
sound/soc/samsung/smdk_spdif.c +1 -1
@@ -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, };
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: rockchip: make snd_soc_ops const" to the asoc tree
In reply to Bhumika GoyalThe 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
Quoted 1 line
From
c12a4a40b4fdaefa6c2578e86d277410e1a9cea1Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
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
--- sound/soc/rockchip/rk3288_hdmi_analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/rockchip/rk3288_hdmi_analog.c +1 -1
@@ -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, };
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: generic: make snd_soc_ops const" to the asoc tree
In reply to Bhumika GoyalThe 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
Quoted 1 line
From
e23d834876390d6b8d4d35057e9ecd899a44193aMon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
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.
--- sound/soc/generic/audio-graph-card.c | 2 +- sound/soc/generic/audio-graph-scu-card.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/generic/audio-graph-card.c +1 -1
@@ -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, };
sound/soc/generic/audio-graph-scu-card.c +1 -1
@@ -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, };
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: cirrus: make snd_soc_ops const" to the asoc tree
In reply to Bhumika GoyalThe 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
Quoted 1 line
From
7f8159acecb3bb58c0d782813dc605ebef63b317Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
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.
--- sound/soc/cirrus/edb93xx.c | 2 +- sound/soc/cirrus/snappercl15.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/cirrus/edb93xx.c +1 -1
@@ -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, };
sound/soc/cirrus/snappercl15.c +1 -1
@@ -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, };
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: aux1x: make snd_soc_ops const" to the asoc tree
In reply to Bhumika GoyalThe 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
Quoted 1 line
From
052fba77f57b9f243ad3a45a21c809bddcd03627Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
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.
--- sound/soc/au1x/db1200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/au1x/db1200.c +1 -1
@@ -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, };
Signature · 1 line
2.13.3