Skip to contentSkip to conversation

ASoC: wm8750: Fix missing braces around initializer warning

PATCH In review Axel Lin 2 participants 2 messages Aug 13, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: wm8750: Fix missing braces around initializer warning

Fix below warning:
CC sound/soc/codecs/wm8750.o
sound/soc/codecs/wm8750.c:784: warning: missing braces around initializer sound/soc/codecs/wm8750.c:784: warning: (near initialization for 'wm8750_spi_ids[2].name')

---
 sound/soc/codecs/wm8750.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8750.c +1 -1
index 82ac5fc..8983ab1 100644
@@ -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);
 
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 4 lines · Axel Lin

Fix below warning:
CC sound/soc/codecs/wm8750.o
sound/soc/codecs/wm8750.c:784: warning: missing braces around initializer sound/soc/codecs/wm8750.c:784: warning: (near initialization for 'wm8750_spi_ids[2].name')

Takashi already made this change.