summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8750.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-08-12 18:22:10 +0200
committerTakashi Iwai <tiwai@suse.de>2011-08-12 18:22:10 +0200
commitf6b864a9071e21186476910613ec9913b56067a2 (patch)
tree37f349ade7287de193d3b1766daa4410c2cfb40d /sound/soc/codecs/wm8750.c
parent7ec41ee5ad5f716f67041c0d49014d0becb5332c (diff)
downloadop-kernel-dev-f6b864a9071e21186476910613ec9913b56067a2.zip
op-kernel-dev-f6b864a9071e21186476910613ec9913b56067a2.tar.gz
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@suse.de>
Diffstat (limited to 'sound/soc/codecs/wm8750.c')
-rw-r--r--sound/soc/codecs/wm8750.c2
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);
OpenPOWER on IntegriCloud