]> Gentwo Git Trees - linux/.git/commit
drm/mediatek: mtk_hdmi: Improve mtk_hdmi_get_all_clk() flexibility
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 23 Oct 2025 10:32:28 +0000 (12:32 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 17 Nov 2025 15:03:48 +0000 (15:03 +0000)
commit0d410bd10ae430652d6a2f1169ca84be82bfeaff
tree90bad488e94351b20966c9b3c05c5da8a1a5dc9d
parent257dfd9e204fd0245d5e309f2b5ddf9dece576da
drm/mediatek: mtk_hdmi: Improve mtk_hdmi_get_all_clk() flexibility

In preparation for splitting common bits of this driver and for
introducing a new version of the MediaTek HDMI Encoder IP, improve
the flexibility of function mtk_hdmi_get_all_clk() by adding a
pointer to the clock names array and size of it to its parameters.

Also change the array of struct clock pointers in the mtk_hdmi
structure to be dynamically allocated, and allocate it in probe.

Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20251023-mediatek-drm-hdmi-v2-v11-2-7873ec4a1edf@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c