From a3bba93360d7348a420180298827c8f4f9296b3e Mon Sep 17 00:00:00 2001 From: "Mario Limonciello (AMD)" Date: Fri, 24 Oct 2025 10:07:40 -0500 Subject: [PATCH] drm/amd/display: Move CONNECTOR_ID_PCIE into switch/case [WHY] There is already a switch/case looking at link->link_id.id. [How] Move the case of `CONNECTOR_ID_PCIE` into switch case. Reviewed-by: Alex Hung Signed-off-by: Mario Limonciello (AMD) Signed-off-by: Alex Hung Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/link/link_detection.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/link/link_detection.c b/drivers/gpu/drm/amd/display/dc/link/link_detection.c index 7084b1909445..25132f777736 100644 --- a/drivers/gpu/drm/amd/display/dc/link/link_detection.c +++ b/drivers/gpu/drm/amd/display/dc/link/link_detection.c @@ -195,12 +195,6 @@ static enum signal_type link_detect_sink_signal_type(struct dc_link *link, * eDP connector supports only eDP signal; * HDMI should check straps for audio */ - - /* PCIE detects the actual connector on add-on board */ - if (link->link_id.id == CONNECTOR_ID_PCIE) { - /* ZAZTODO implement PCIE add-on card detection */ - } - switch (link->link_id.id) { case CONNECTOR_ID_HDMI_TYPE_A: /* check audio support: @@ -226,6 +220,9 @@ static enum signal_type link_detect_sink_signal_type(struct dc_link *link, result = SIGNAL_TYPE_DVI_SINGLE_LINK; } break; + case CONNECTOR_ID_PCIE: + /* ZAZTODO implement PCIE add-on card detection */ + break; default: break; } -- 2.47.3