Commit f6b864a9071e21186476910613ec9913b56067a2

Authored by Takashi Iwai
1 parent 7ec41ee5ad

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/soc/codecs/wm8750.c
... ... @@ -781,7 +781,7 @@
781 781 static const struct spi_device_id wm8750_spi_ids[] = {
782 782 { "wm8750", 0 },
783 783 { "wm8987", 0 },
784   - { 0, 0 },
  784 + { },
785 785 };
786 786 MODULE_DEVICE_TABLE(spi, wm8750_spi_ids);
787 787