Skip to content

Commit 1168bb6

Browse files
Hsiao Chien SungChun-Kuang Hu
authored andcommitted
drm/mediatek: Refine device table of OVL adaptor
- 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>
1 parent 9c5a05f commit 1168bb6

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,10 @@ static int ovl_adaptor_comp_get_id(struct device *dev, struct device_node *node,
437437
}
438438

439439
static const struct of_device_id mtk_ovl_adaptor_comp_dt_ids[] = {
440-
{
441-
.compatible = "mediatek,mt8195-vdo1-rdma",
442-
.data = (void *)OVL_ADAPTOR_TYPE_MDP_RDMA,
443-
}, {
444-
.compatible = "mediatek,mt8195-disp-merge",
445-
.data = (void *)OVL_ADAPTOR_TYPE_MERGE,
446-
}, {
447-
.compatible = "mediatek,mt8195-disp-ethdr",
448-
.data = (void *)OVL_ADAPTOR_TYPE_ETHDR,
449-
},
450-
{},
440+
{ .compatible = "mediatek,mt8195-disp-ethdr", .data = (void *)OVL_ADAPTOR_TYPE_ETHDR },
441+
{ .compatible = "mediatek,mt8195-disp-merge", .data = (void *)OVL_ADAPTOR_TYPE_MERGE },
442+
{ .compatible = "mediatek,mt8195-vdo1-rdma", .data = (void *)OVL_ADAPTOR_TYPE_MDP_RDMA },
443+
{ /* sentinel */ }
451444
};
452445

453446
static int compare_of(struct device *dev, void *data)

0 commit comments

Comments
 (0)