drm/mediatek: Refine device table of OVL adaptor
authorHsiao Chien Sung <shawn.sung@mediatek.com>
Thu, 14 Dec 2023 05:58:41 +0000 (13:58 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 14 Dec 2023 14:42:41 +0000 (14:42 +0000)
- Adjust indentation to align with other files
- Sort device table in alphabetical order
- Add sentinel to device table

Reviewed-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20231214055847.4936-18-shawn.sung@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c

index 30f2475d1c0b486384d4d203594e53480cf2bd06..92eeb1005ec368f8c1a5693bc623f290f79d25e0 100644 (file)
@@ -437,17 +437,10 @@ static int ovl_adaptor_comp_get_id(struct device *dev, struct device_node *node,
 }
 
 static const struct of_device_id mtk_ovl_adaptor_comp_dt_ids[] = {
-       {
-               .compatible = "mediatek,mt8195-vdo1-rdma",
-               .data = (void *)OVL_ADAPTOR_TYPE_MDP_RDMA,
-       }, {
-               .compatible = "mediatek,mt8195-disp-merge",
-               .data = (void *)OVL_ADAPTOR_TYPE_MERGE,
-       }, {
-               .compatible = "mediatek,mt8195-disp-ethdr",
-               .data = (void *)OVL_ADAPTOR_TYPE_ETHDR,
-       },
-       {},
+       { .compatible = "mediatek,mt8195-disp-ethdr", .data = (void *)OVL_ADAPTOR_TYPE_ETHDR },
+       { .compatible = "mediatek,mt8195-disp-merge", .data = (void *)OVL_ADAPTOR_TYPE_MERGE },
+       { .compatible = "mediatek,mt8195-vdo1-rdma", .data = (void *)OVL_ADAPTOR_TYPE_MDP_RDMA },
+       { /* sentinel */ }
 };
 
 static int compare_of(struct device *dev, void *data)