All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <zonque@gmail.com>
To: alsa-devel@alsa-project.org
Cc: broonie@opensource.wolfsonmicro.com, mr.swami.reddy@ti.com,
	Daniel Mack <zonque@gmail.com>
Subject: [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
Date: Wed, 27 Jun 2012 09:34:36 +0200	[thread overview]
Message-ID: <1340782476-5626-1-git-send-email-zonque@gmail.com> (raw)

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

             reply	other threads:[~2012-06-27  7:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27  7:34 Daniel Mack [this message]
2012-06-27 10:17 ` [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1340782476-5626-1-git-send-email-zonque@gmail.com \
    --to=zonque@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=mr.swami.reddy@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.