]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: sst-bxt-da7219_max98357a: fix obsoleted initializer for array
authorColin Ian King <colin.king@canonical.com>
Mon, 17 Oct 2016 22:02:56 +0000 (23:02 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 24 Oct 2016 17:26:04 +0000 (18:26 +0100)
Smatch reports below warnings:

    bxt_da7219_max98357a.c:352:9: warning: obsolete array initializer,
    use C99 syntax

An earlier commit cleaned up similar warnings, however, a recent
commit 43c02ede76a60de ("ASoC: Intel: Add DMIC channel constraint for
bxt machine") re-introduced the older initializer style. So fix
this warning to make the code consistent.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bxt_da7219_max98357a.c

index 865a21e557cce330508ceee677c16f82359087ee..bff80b4672627712ef92e7d4a88a26a78305d121 100644 (file)
@@ -348,7 +348,7 @@ static struct snd_soc_dai_link broxton_dais[] = {
                .dynamic = 1,
                .ops = &broxton_refcap_ops,
        },
-       [BXT_DPCM_AUDIO_DMIC_CP]
+       [BXT_DPCM_AUDIO_DMIC_CP] =
        {
                .name = "Bxt Audio DMIC cap",
                .stream_name = "dmiccap",