]> Gentwo Git Trees - linux/.git/commitdiff
drm/mediatek: mtk_hdmi_common: Assign DDC adapter pointer to bridge
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 23 Oct 2025 10:32:32 +0000 (12:32 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 17 Nov 2025 15:04:41 +0000 (15:04 +0000)
In preparation for adding the new HDMI TX v2 IP driver, assign the
pointer to the DDC adapter to struct drm_bridge during probe.

This commit brings no functional changes.

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-6-7873ec4a1edf@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi_common.c

index 0dcddf72628508ea678ed491778fb222f7141f2c..a82189315aeffa3a283f94cbbf35cffc9cb9d41a 100644 (file)
@@ -428,7 +428,9 @@ struct mtk_hdmi *mtk_hdmi_common_probe(struct platform_device *pdev)
        hdmi->bridge.of_node = pdev->dev.of_node;
        hdmi->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID
                         | DRM_BRIDGE_OP_HPD;
+
        hdmi->bridge.type = DRM_MODE_CONNECTOR_HDMIA;
+       hdmi->bridge.ddc = hdmi->ddc_adpt;
        hdmi->bridge.vendor = "MediaTek";
        hdmi->bridge.product = "On-Chip HDMI";