]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Move CONNECTOR_ID_PCIE into switch/case
authorMario Limonciello (AMD) <superm1@kernel.org>
Fri, 24 Oct 2025 15:07:40 +0000 (10:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:37 +0000 (13:56 -0500)
[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 <alex.hung@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/link_detection.c

index 7084b1909445269fac063481336b10f425d95893..25132f7777365e783be2d49d47d316c73e9f82e1 100644 (file)
@@ -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;
        }