[alsa-devel] [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver

Daniel Mack zonque at gmail.com
Wed Jun 27 09:34:36 CEST 2012


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 at 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



More information about the Alsa-devel mailing list