All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
@ 2012-06-27  7:34 Daniel Mack
  2012-06-27 10:17 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Mack @ 2012-06-27  7:34 UTC (permalink / raw)
  To: alsa-devel; +Cc: broonie, mr.swami.reddy, Daniel Mack

Fixes the following build warning.

  CC      sound/soc/codecs/lm49453.o
sound/soc/codecs/lm49453.c: In function ‘lm49453_i2c_probe’:
sound/soc/codecs/lm49453.c:1511:24: warning: passing argument 3 of
‘snd_soc_register_codec’ discards qualifiers from pointer target type
include/sound/soc.h:333:5: note: expected ‘struct snd_soc_dai_driver *’
but argument is of type ‘const struct snd_soc_dai_driver *’

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 sound/soc/codecs/lm49453.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c
index 802b9f1..5bd1294 100644
--- a/sound/soc/codecs/lm49453.c
+++ b/sound/soc/codecs/lm49453.c
@@ -1358,7 +1358,7 @@ static struct snd_soc_dai_ops lm49453_lineout_dai_ops = {
 };
 
 /* LM49453 dai structure. */
-static const struct snd_soc_dai_driver lm49453_dai[] = {
+static struct snd_soc_dai_driver lm49453_dai[] = {
 	{
 		.name = "LM49453 Headset",
 		.playback = {
-- 
1.7.10.2

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2012-06-27 11:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-27  7:34 [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver Daniel Mack
2012-06-27 10:17 ` Mark Brown
2012-06-27 10:21   ` Daniel Mack
2012-06-27 10:25   ` Takashi Iwai
2012-06-27 11:11     ` Mark Brown
2012-06-27 11:39       ` Takashi Iwai
2012-06-27 11:44         ` 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.