Skip to content

Commit 471a9c2

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_hdmi: Compress of_device_id array entries
Compress the entries found in the of_device_id array to improve readability of this file and to make that consistent with other kernel drivers. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Link: https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 72fcb88 commit 471a9c2

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

drivers/gpu/drm/mediatek/mtk_hdmi.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,15 +1794,10 @@ static const struct mtk_hdmi_conf mtk_hdmi_conf_mt8167 = {
17941794
};
17951795

17961796
static const struct of_device_id mtk_hdmi_of_ids[] = {
1797-
{ .compatible = "mediatek,mt2701-hdmi",
1798-
.data = &mtk_hdmi_conf_mt2701,
1799-
},
1800-
{ .compatible = "mediatek,mt8167-hdmi",
1801-
.data = &mtk_hdmi_conf_mt8167,
1802-
},
1803-
{ .compatible = "mediatek,mt8173-hdmi",
1804-
},
1805-
{}
1797+
{ .compatible = "mediatek,mt2701-hdmi", .data = &mtk_hdmi_conf_mt2701 },
1798+
{ .compatible = "mediatek,mt8167-hdmi", .data = &mtk_hdmi_conf_mt8167 },
1799+
{ .compatible = "mediatek,mt8173-hdmi" },
1800+
{ /* sentinel */ }
18061801
};
18071802
MODULE_DEVICE_TABLE(of, mtk_hdmi_of_ids);
18081803

0 commit comments

Comments
 (0)