ASoC: make snd_soc_dai_driver and snd_soc_component_driver const
Subsystems (3)
cover ASoC: make snd_soc_dai_driver and snd_soc_component_driver const
Make these const.
Bhumika Goyal (2):
ASoC: bcm: make snd_soc_dai_driver const
ASoC: codecs: make snd_soc_dai_driver and snd_soc_component_driver
const
sound/soc/bcm/cygnus-ssp.c | 2 +- sound/soc/codecs/hdmi-codec.c | 2 +- sound/soc/codecs/lm4857.c | 2 +- sound/soc/codecs/max9768.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/2 ASoC: bcm: make snd_soc_dai_driver const
Make this const as it is only used during a copy operation. Done using Coccinelle.
--- sound/soc/bcm/cygnus-ssp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/bcm/cygnus-ssp.c +1 -1
@@ -1165,7 +1165,7 @@ static int cygnus_ssp_resume(struct snd_soc_dai *cpu_dai) INIT_CPU_DAI(2), }; -static struct snd_soc_dai_driver cygnus_spdif_dai_info = { +static const struct snd_soc_dai_driver cygnus_spdif_dai_info = { .name ="cygnus-spdif" , .playback = { .channels_min =2 ,
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: bcm: make snd_soc_dai_driver const" to the asoc tree
The patch
ASoC: bcm: make snd_soc_dai_driver 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
cc6e25631ddd4f3295fc79568f2145c437849e63Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
Date: Wed, 16 Aug 2017 22:45:08 +0530
Subject: [PATCH] ASoC: bcm: make snd_soc_dai_driver const
Make this const as it is only used during a copy operation. Done using Coccinelle.
--- sound/soc/bcm/cygnus-ssp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/bcm/cygnus-ssp.c +1 -1
@@ -1288,7 +1288,7 @@ static const struct snd_soc_dai_driver cygnus_ssp_dai_info[] = { INIT_CPU_DAI(2), }; -static struct snd_soc_dai_driver cygnus_spdif_dai_info = { +static const struct snd_soc_dai_driver cygnus_spdif_dai_info = { .name ="cygnus-spdif" , .playback = { .channels_min =2 ,
Signature · 1 line
2.13.3
PATCH 2/2 ASoC: codecs: make snd_soc_dai_driver and snd_soc_component_driver const
In reply to Bhumika GoyalMake these two structure variables const as they are either used in a copy operation or passed to devm_snd_soc_register_component having the corresponding argument as const.
Done using Coccinelle.
--- sound/soc/codecs/hdmi-codec.c | 2 +- sound/soc/codecs/lm4857.c | 2 +- sound/soc/codecs/max9768.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/hdmi-codec.c +1 -1
@@ -692,7 +692,7 @@ static int hdmi_codec_pcm_new(struct snd_soc_pcm_runtime *rtd,return snd_ctl_add (rtd->card->snd_card, kctl); } -static struct snd_soc_dai_driver hdmi_i2s_dai = { +static const struct snd_soc_dai_driver hdmi_i2s_dai = { .name ="i2s-hifi" , .id =DAI_ID_I2S , .playback = {
sound/soc/codecs/lm4857.c +1 -1
@@ -100,7 +100,7 @@ static SOC_VALUE_ENUM_SINGLE_AUTODISABLE_DECL(lm4857_mode_enum, { "EP", "Earpiece", "Mode" }, }; -static struct snd_soc_component_driver lm4857_component_driver = { +static const struct snd_soc_component_driver lm4857_component_driver = { .controls = lm4857_controls, .num_controls =ARRAY_SIZE (lm4857_controls), .dapm_widgets = lm4857_dapm_widgets,
sound/soc/codecs/max9768.c +1 -1
@@ -151,7 +151,7 @@ static int max9768_probe(struct snd_soc_component *component)return 0 ; } -static struct snd_soc_component_driver max9768_component_driver = { +static const struct snd_soc_component_driver max9768_component_driver = { .probe = max9768_probe, .controls = max9768_volume, .num_controls =ARRAY_SIZE (max9768_volume),
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: codecs: make snd_soc_dai_driver and snd_soc_component_driver const" to the asoc tree
The patch
ASoC: codecs: make snd_soc_dai_driver and snd_soc_component_driver 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
6e37f933ed1ade3201dd609d103c0ef79c0ef6b0Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
Date: Wed, 16 Aug 2017 22:45:09 +0530
Subject: [PATCH] ASoC: codecs: make snd_soc_dai_driver and
snd_soc_component_driver const
Make these two structure variables const as they are either used in a copy operation or passed to devm_snd_soc_register_component having the corresponding argument as const.
Done using Coccinelle.
--- sound/soc/codecs/hdmi-codec.c | 2 +- sound/soc/codecs/lm4857.c | 2 +- sound/soc/codecs/max9768.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/hdmi-codec.c +1 -1
@@ -692,7 +692,7 @@ static int hdmi_codec_pcm_new(struct snd_soc_pcm_runtime *rtd,return snd_ctl_add (rtd->card->snd_card, kctl); } -static struct snd_soc_dai_driver hdmi_i2s_dai = { +static const struct snd_soc_dai_driver hdmi_i2s_dai = { .name ="i2s-hifi" , .id =DAI_ID_I2S , .playback = {
sound/soc/codecs/lm4857.c +1 -1
@@ -100,7 +100,7 @@ static const struct snd_soc_dapm_route lm4857_routes[] = { { "EP", "Earpiece", "Mode" }, }; -static struct snd_soc_component_driver lm4857_component_driver = { +static const struct snd_soc_component_driver lm4857_component_driver = { .controls = lm4857_controls, .num_controls =ARRAY_SIZE (lm4857_controls), .dapm_widgets = lm4857_dapm_widgets,
sound/soc/codecs/max9768.c +1 -1
@@ -151,7 +151,7 @@ static int max9768_probe(struct snd_soc_component *component)return 0 ; } -static struct snd_soc_component_driver max9768_component_driver = { +static const struct snd_soc_component_driver max9768_component_driver = { .probe = max9768_probe, .controls = max9768_volume, .num_controls =ARRAY_SIZE (max9768_volume),
Signature · 1 line
2.13.3