ASoC: mediatek: mt8195: Make sure of_device_id table are NULL terminated
authorLv Ruyi <lv.ruyi@zte.com.cn>
Fri, 8 Apr 2022 10:03:09 +0000 (10:03 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 8 Apr 2022 14:43:38 +0000 (15:43 +0100)
Fix the following coccicheck review:
./sound/soc/mediatek/mt8195/mt8195-mt6359.c:1657:1-2:
mt8195_mt6359_dt_match is not NULL terminated at line 1657

Fixes: 86a6b9c9dfff ("ASoC: mediatek: mt8195: add machine support for max98390 and rt5682")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Link: https://lore.kernel.org/r/20220408100309.2495462-1-lv.ruyi@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8195/mt8195-mt6359.c

index bc8c30b33969a561cf8ceb81a2b79d950b4eae1c..262a54e590e805e408cb0a27da81caf5fee0435e 100644 (file)
@@ -1655,6 +1655,7 @@ static const struct of_device_id mt8195_mt6359_dt_match[] = {
                .compatible = "mediatek,mt8195_mt6359_max98390_rt5682",
                .data = &mt8195_mt6359_max98390_rt5682_card,
        },
+       {},
 };
 #endif