diff mbox

[1/1] ASoC: lm49453: Fix compilation warning

Message ID 1340172459-29172-1-git-send-email-sachin.kamat@linaro.org
State Not Applicable
Headers show

Commit Message

Sachin Kamat June 20, 2012, 6:07 a.m. UTC
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@linaro.org>
---
 sound/soc/codecs/lm49453.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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 = {