All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] ASoC: Constify snd_soc_dai_ops structs
       [not found] <1322044840-32709-1-git-send-email-lars@metafoo.de>
@ 2011-11-23 10:47 ` Mark Brown
  2011-11-23 13:01   ` Lars-Peter Clausen
  2011-11-23 13:11 ` [PATCH] ASoC: Cleanup duplicated const Lars-Peter Clausen
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2011-11-23 10:47 UTC (permalink / raw)
  To: Lars-Peter Clausen; +Cc: alsa-devel, Liam Girdwood

On Wed, Nov 23, 2011 at 11:40:40AM +0100, Lars-Peter Clausen wrote:
> Commit 1ee46ebd("ASoC: Make the DAI ops constant in the DAI structure")
> introduced the possibility to have constant DAI ops structures, yet this is
> barley used in both existing drivers and also new drivers being submitted,
> although none of them modifies its DAI ops structure. The later is not
> surprising since existing drivers are often used as templates for new drivers.
> So this patch just constifies all existing snd_soc_dai_ops structs to eliminate
> the issue altogether.

Applied, thanks.

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

* Re: [PATCH] ASoC: Constify snd_soc_dai_ops structs
  2011-11-23 10:47 ` [PATCH] ASoC: Constify snd_soc_dai_ops structs Mark Brown
@ 2011-11-23 13:01   ` Lars-Peter Clausen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars-Peter Clausen @ 2011-11-23 13:01 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, Liam Girdwood

On 11/23/2011 11:47 AM, Mark Brown wrote:
> On Wed, Nov 23, 2011 at 11:40:40AM +0100, Lars-Peter Clausen wrote:
>> Commit 1ee46ebd("ASoC: Make the DAI ops constant in the DAI structure")
>> introduced the possibility to have constant DAI ops structures, yet this is
>> barley used in both existing drivers and also new drivers being submitted,
>> although none of them modifies its DAI ops structure. The later is not
>> surprising since existing drivers are often used as templates for new drivers.
>> So this patch just constifies all existing snd_soc_dai_ops structs to eliminate
>> the issue altogether.
> 
> Applied, thanks.

Argh, looks like I have to work a bit more on my coccinelle skills, I
introduced a few 'const const struct snd_soc_dai_ops' in this patch, which I
overlooked, since this seems to be legal C. Will send a followup cleanup patch.

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

* [PATCH] ASoC: Cleanup duplicated const
       [not found] <1322044840-32709-1-git-send-email-lars@metafoo.de>
  2011-11-23 10:47 ` [PATCH] ASoC: Constify snd_soc_dai_ops structs Mark Brown
@ 2011-11-23 13:11 ` Lars-Peter Clausen
  2011-11-23 13:11   ` Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Lars-Peter Clausen @ 2011-11-23 13:11 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel, Lars-Peter Clausen

Commit 85e7652("ASoC: Constify snd_soc_dai_ops structs") accidentally
introduced a few duplicated consts. This patch cleans it up.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/au1x/i2sc.c       |    2 +-
 sound/soc/codecs/adau1373.c |    2 +-
 sound/soc/codecs/adau1701.c |    2 +-
 sound/soc/codecs/adav80x.c  |    2 +-
 sound/soc/codecs/cs42l73.c  |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sound/soc/au1x/i2sc.c b/sound/soc/au1x/i2sc.c
index 2d5f755..6bcf48f 100644
--- a/sound/soc/au1x/i2sc.c
+++ b/sound/soc/au1x/i2sc.c
@@ -201,7 +201,7 @@ static int au1xi2s_startup(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static const const struct snd_soc_dai_ops au1xi2s_dai_ops = {
+static const struct snd_soc_dai_ops au1xi2s_dai_ops = {
 	.startup	= au1xi2s_startup,
 	.trigger	= au1xi2s_trigger,
 	.hw_params	= au1xi2s_hw_params,
diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c
index 2e040af..45c6302 100644
--- a/sound/soc/codecs/adau1373.c
+++ b/sound/soc/codecs/adau1373.c
@@ -1042,7 +1042,7 @@ static int adau1373_set_dai_sysclk(struct snd_soc_dai *dai,
 	return 0;
 }
 
-static const const struct snd_soc_dai_ops adau1373_dai_ops = {
+static const struct snd_soc_dai_ops adau1373_dai_ops = {
 	.hw_params	= adau1373_hw_params,
 	.set_sysclk	= adau1373_set_dai_sysclk,
 	.set_fmt	= adau1373_set_dai_fmt,
diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c
index c69bdfe..8b7e1c5 100644
--- a/sound/soc/codecs/adau1701.c
+++ b/sound/soc/codecs/adau1701.c
@@ -427,7 +427,7 @@ static int adau1701_set_sysclk(struct snd_soc_codec *codec, int clk_id,
 #define ADAU1701_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
 	SNDRV_PCM_FMTBIT_S24_LE)
 
-static const const struct snd_soc_dai_ops adau1701_dai_ops = {
+static const struct snd_soc_dai_ops adau1701_dai_ops = {
 	.set_fmt	= adau1701_set_dai_fmt,
 	.hw_params	= adau1701_hw_params,
 	.digital_mute	= adau1701_digital_mute,
diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c
index d927feb..f9f0894 100644
--- a/sound/soc/codecs/adav80x.c
+++ b/sound/soc/codecs/adav80x.c
@@ -718,7 +718,7 @@ static void adav80x_dai_shutdown(struct snd_pcm_substream *substream,
 		adav80x->rate = 0;
 }
 
-static const const struct snd_soc_dai_ops adav80x_dai_ops = {
+static const struct snd_soc_dai_ops adav80x_dai_ops = {
 	.set_fmt = adav80x_set_dai_fmt,
 	.hw_params = adav80x_hw_params,
 	.startup = adav80x_dai_startup,
diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c
index 75d80b2..d09578f 100644
--- a/sound/soc/codecs/cs42l73.c
+++ b/sound/soc/codecs/cs42l73.c
@@ -1190,7 +1190,7 @@ static int cs42l73_pcm_startup(struct snd_pcm_substream *substream,
 #define CS42L73_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
 	SNDRV_PCM_FMTBIT_S24_LE)
 
-static const const struct snd_soc_dai_ops cs42l73_ops = {
+static const struct snd_soc_dai_ops cs42l73_ops = {
 	.startup = cs42l73_pcm_startup,
 	.hw_params = cs42l73_pcm_hw_params,
 	.set_fmt = cs42l73_set_dai_fmt,
-- 
1.7.7.1

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

* Re: [PATCH] ASoC: Cleanup duplicated const
  2011-11-23 13:11 ` [PATCH] ASoC: Cleanup duplicated const Lars-Peter Clausen
@ 2011-11-23 13:11   ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2011-11-23 13:11 UTC (permalink / raw)
  To: Lars-Peter Clausen; +Cc: alsa-devel, Liam Girdwood

On Wed, Nov 23, 2011 at 02:11:21PM +0100, Lars-Peter Clausen wrote:
> Commit 85e7652("ASoC: Constify snd_soc_dai_ops structs") accidentally
> introduced a few duplicated consts. This patch cleans it up.

Applied, thanks.

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

end of thread, other threads:[~2011-11-23 13:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1322044840-32709-1-git-send-email-lars@metafoo.de>
2011-11-23 10:47 ` [PATCH] ASoC: Constify snd_soc_dai_ops structs Mark Brown
2011-11-23 13:01   ` Lars-Peter Clausen
2011-11-23 13:11 ` [PATCH] ASoC: Cleanup duplicated const Lars-Peter Clausen
2011-11-23 13:11   ` Mark Brown

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.