]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mediatek: mtk_hdmi: Move CEC device parsing in new function
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 15 Apr 2025 10:43:11 +0000 (12:43 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 21 Apr 2025 13:51:27 +0000 (13:51 +0000)
commit7485be967f7f39e931967b33c71ece88a573fc90
treeae4371d181bac828366ca56dcefc1b007725fc3f
parent03c7aea33cb5860b4468c65a1715be76b54fb882
drm/mediatek: mtk_hdmi: Move CEC device parsing in new function

Move the CEC device parsing logic to a new function called
mtk_hdmi_get_cec_dev(), and move the parsing action to the end
of mtk_hdmi_dt_parse_pdata(), allowing to remove gotos in this
function, reducing code size and improving readability.

Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20250415104321.51149-14-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c