Skip to content

Commit 61d9afa

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_dpi: Compress struct of_device_id entries
Reduce line count by compressing the entries of struct of_device_id; while at it, also add the usual /* sentinel */ comment to the last entry. This commit brings no functional changes. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Fei Shao <[email protected]> Reviewed-by: CK Hu <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 4f10987 commit 61d9afa

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

drivers/gpu/drm/mediatek/mtk_dpi.c

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,28 +1091,14 @@ static void mtk_dpi_remove(struct platform_device *pdev)
10911091
}
10921092

10931093
static const struct of_device_id mtk_dpi_of_ids[] = {
1094-
{ .compatible = "mediatek,mt2701-dpi",
1095-
.data = &mt2701_conf,
1096-
},
1097-
{ .compatible = "mediatek,mt8173-dpi",
1098-
.data = &mt8173_conf,
1099-
},
1100-
{ .compatible = "mediatek,mt8183-dpi",
1101-
.data = &mt8183_conf,
1102-
},
1103-
{ .compatible = "mediatek,mt8186-dpi",
1104-
.data = &mt8186_conf,
1105-
},
1106-
{ .compatible = "mediatek,mt8188-dp-intf",
1107-
.data = &mt8188_dpintf_conf,
1108-
},
1109-
{ .compatible = "mediatek,mt8192-dpi",
1110-
.data = &mt8192_conf,
1111-
},
1112-
{ .compatible = "mediatek,mt8195-dp-intf",
1113-
.data = &mt8195_dpintf_conf,
1114-
},
1115-
{ },
1094+
{ .compatible = "mediatek,mt2701-dpi", .data = &mt2701_conf },
1095+
{ .compatible = "mediatek,mt8173-dpi", .data = &mt8173_conf },
1096+
{ .compatible = "mediatek,mt8183-dpi", .data = &mt8183_conf },
1097+
{ .compatible = "mediatek,mt8186-dpi", .data = &mt8186_conf },
1098+
{ .compatible = "mediatek,mt8188-dp-intf", .data = &mt8188_dpintf_conf },
1099+
{ .compatible = "mediatek,mt8192-dpi", .data = &mt8192_conf },
1100+
{ .compatible = "mediatek,mt8195-dp-intf", .data = &mt8195_dpintf_conf },
1101+
{ /* sentinel */ },
11161102
};
11171103
MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids);
11181104

0 commit comments

Comments
 (0)