]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: mediatek: mt8188-mt6359: Compress of_device_id entries
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 8 Jun 2023 08:47:23 +0000 (10:47 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 8 Jun 2023 10:36:17 +0000 (11:36 +0100)
Those entries fit in one line: compress them to reduce line count.
While at it, also add the sentinel comment to the last entry.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://lore.kernel.org/r/20230608084727.74403-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8188/mt8188-mt6359.c

index bc4b74970a468a9ef1b7e7b13ff99f0a0f7ea2d2..643a7a12a96bd10fce587807f0b7077ce9981af9 100644 (file)
@@ -1117,15 +1117,9 @@ static struct mt8188_card_data mt8188_nau8825_card = {
 };
 
 static const struct of_device_id mt8188_mt6359_dt_match[] = {
-       {
-               .compatible = "mediatek,mt8188-mt6359-evb",
-               .data = &mt8188_evb_card,
-       },
-       {
-               .compatible = "mediatek,mt8188-nau8825",
-               .data = &mt8188_nau8825_card,
-       },
-       {},
+       { .compatible = "mediatek,mt8188-mt6359-evb", .data = &mt8188_evb_card, },
+       { .compatible = "mediatek,mt8188-nau8825", .data = &mt8188_nau8825_card, },
+       { /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, mt8188_mt6359_dt_match);