]> Gentwo Git Trees - linux/.git/commitdiff
drm/amd/display: Check ATOM_DEVICE_CRT2_SUPPORT in dc_load_detection
authorIvan Lipski <ivan.lipski@amd.com>
Thu, 13 Nov 2025 21:51:32 +0000 (16:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Nov 2025 16:35:22 +0000 (11:35 -0500)
[WHY & HOW]
Fix the typo of the else-if condition from ATOM_DEVICE_CRT1_SUPPORT to
ATOM_DEVICE_CRT2_SUPPORT.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c

index 4120d6c4c5e4509bec9e68c0f5d7585125d8134b..d1471f34e4192b382cfe754dd509a2faf0f1f17d 100644 (file)
@@ -805,7 +805,7 @@ static enum bp_result bios_parser_dac_load_detection(
 
        if (bp_params.device_id == ATOM_DEVICE_CRT1_SUPPORT)
                device_id_mask = ATOM_S0_CRT1_MASK;
-       else if (bp_params.device_id == ATOM_DEVICE_CRT1_SUPPORT)
+       else if (bp_params.device_id == ATOM_DEVICE_CRT2_SUPPORT)
                device_id_mask = ATOM_S0_CRT2_MASK;
        else
                return BP_RESULT_UNSUPPORTED;