[alsa-devel] [PATCH 1/1] ASoC: lm49453: Fix compilation warning
Reddy, M.R. Swami
MR.Swami.Reddy at ti.com
Wed Jun 20 09:03:56 CEST 2012
This compilation warning issue was fixed.
Patch submitted by Mark. http://mailman.alsa-project.org/pipermail/alsa-devel/2012-June/052425.html
Please use the latest source repo.
Thanks
Swami
-----Original Message-----
From: Sachin Kamat [mailto:sachin.kamat at linaro.org]
Sent: Wednesday, June 20, 2012 11:38 AM
To: alsa-devel at alsa-project.org
Cc: broonie at opensource.wolfsonmicro.com; Reddy, M.R. Swami; sachin.kamat at linaro.org; patches at linaro.org
Subject: [PATCH 1/1] ASoC: lm49453: Fix compilation warning
Fixes the following build warning:
sound/soc/codecs/lm49453.c: In function ‘lm49453_i2c_probe’:
sound/soc/codecs/lm49453.c:1510:24: warning: passing argument 3 of ‘snd_soc_register_codec’ discards ‘const’ qualifier from pointer target type [enabled by default]
include/sound/soc.h:333:5: note: expected ‘struct snd_soc_dai_driver *’ but argument is of type ‘const struct snd_soc_dai_driver *’
The struct snd_soc_dai_driver lm49453_dai[] has been made non-const, in line with other snd_soc_dai_driver structure variables in other codec files.
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
---
sound/soc/codecs/lm49453.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c index c1bc945..99b0a9d 100644
--- a/sound/soc/codecs/lm49453.c
+++ b/sound/soc/codecs/lm49453.c
@@ -1357,7 +1357,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.4.1
More information about the Alsa-devel
mailing list