[alsa-devel] ASoC updates for 3.1
Takashi Iwai
tiwai at suse.de
Fri Aug 12 18:26:22 CEST 2011
At Sat, 13 Aug 2011 01:11:44 +0900,
Mark Brown wrote:
>
> The following changes since commit 8c285645ab3b05942124020b5f0b89d3b539823a:
>
> Merge branch 'wm8996-rename' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 into fix/asoc (2011-08-08 10:45:31 +0200)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git for-3.1
>
> So more changes ended up cooking in -next for the wm8750 than had been
> anticipated - it should've been a simple SPI driver ID addition but it
> got messed up for the modular x86_64 builds that I have difficultly in
> doing while travelling.
I got a build warning, so applied the patch below in addition.
> The change from Sangbeom is another change percolating through after the
> merge window that I'd forgotten about until Kukjin reminded me.
Hmm, OK. It's basically too late, but it's no serious stuff, so let's
get in.
Now pushed out.
thanks,
Takashi
---
From: Takashi Iwai <tiwai at suse.de>
Subject: [PATCH] ASoC: Fix compile warning in wm8750.c
sound/soc/codecs/wm8750.c:784:2: warning: missing braces around initializer
sound/soc/codecs/wm8750.c:784:2: warning: (near initialization for ‘wm8750_spi_ids[2].name’)
It's because struct spi_device_id.name is a char array, not a pointer,
while the driver initializes explicitly with 0.
Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
sound/soc/codecs/wm8750.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c
index 82ac5fc..d0003cc 100644
--- a/sound/soc/codecs/wm8750.c
+++ b/sound/soc/codecs/wm8750.c
@@ -781,7 +781,7 @@ static int __devexit wm8750_spi_remove(struct spi_device *spi)
static const struct spi_device_id wm8750_spi_ids[] = {
{ "wm8750", 0 },
{ "wm8987", 0 },
- { 0, 0 },
+ { },
};
MODULE_DEVICE_TABLE(spi, wm8750_spi_ids);
--
1.7.6
More information about the Alsa-devel
mailing list