]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: Fix compile warning in wm8750.c
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 Aug 2011 16:22:10 +0000 (18:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 Aug 2011 16:22:10 +0000 (18:22 +0200)
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>
sound/soc/codecs/wm8750.c

index 82ac5fcaa2b22746f9880531f58f8c91784a5100..d0003cc3bcd66cf16336bec69cc0f75b4de97a56 100644 (file)
@@ -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);