OSDN Git Service

phy: mediatek: mipi-dsi: Compress of_device_id match entries
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 25 May 2023 11:52:58 +0000 (13:52 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Jul 2023 16:57:42 +0000 (22:27 +0530)
All of the entries do fit in a maximum of 82 columns, which is
acceptable. While at it, also remove the useless comma on the
last entry and add the usual sentinel comment.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230525115258.90091-4-angelogioacchino.delregno@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-mipi-dsi.c

index 4e75c34..065ea62 100644 (file)
@@ -180,13 +180,10 @@ static int mtk_mipi_tx_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id mtk_mipi_tx_match[] = {
-       { .compatible = "mediatek,mt2701-mipi-tx",
-         .data = &mt2701_mipitx_data },
-       { .compatible = "mediatek,mt8173-mipi-tx",
-         .data = &mt8173_mipitx_data },
-       { .compatible = "mediatek,mt8183-mipi-tx",
-         .data = &mt8183_mipitx_data },
-       { },
+       { .compatible = "mediatek,mt2701-mipi-tx", .data = &mt2701_mipitx_data },
+       { .compatible = "mediatek,mt8173-mipi-tx", .data = &mt8173_mipitx_data },
+       { .compatible = "mediatek,mt8183-mipi-tx", .data = &mt8183_mipitx_data },
+       { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mtk_mipi_tx_match);