]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Align macro name as per DP spec
authorAnimesh Manna <animesh.manna@intel.com>
Mon, 16 Mar 2020 10:37:53 +0000 (16:07 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 8 Apr 2020 12:40:33 +0000 (14:40 +0200)
[Why]:
Aligh with DP spec wanted to follow same naming convention.

[How]:
Changed the macro name of the dpcd address used for getting requested
test-pattern.

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200316103759.12867-2-animesh.manna@intel.com
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
include/drm/drm_dp_helper.h

index 7cbb1efb4f68eb245c33eb7dd525256a6ea0b9ed..aa3c45a69b5ec70ef4f021c25a9633612a77c4c0 100644 (file)
@@ -2530,7 +2530,7 @@ static void dp_test_send_phy_test_pattern(struct dc_link *link)
        /* get phy test pattern and pattern parameters from DP receiver */
        core_link_read_dpcd(
                        link,
-                       DP_TEST_PHY_PATTERN,
+                       DP_PHY_TEST_PATTERN,
                        &dpcd_test_pattern.raw,
                        sizeof(dpcd_test_pattern));
        core_link_read_dpcd(
index c6119e4c169aee3987e9fd6b2b697c51a532af04..10ddb622a73e5187a1a90995224338815b3d6ef0 100644 (file)
 # define DP_TEST_CRC_SUPPORTED             (1 << 5)
 # define DP_TEST_COUNT_MASK                0xf
 
-#define DP_TEST_PHY_PATTERN                 0x248
+#define DP_PHY_TEST_PATTERN                 0x248
 #define DP_TEST_80BIT_CUSTOM_PATTERN_7_0    0x250
 #define        DP_TEST_80BIT_CUSTOM_PATTERN_15_8   0x251
 #define        DP_TEST_80BIT_CUSTOM_PATTERN_23_16  0x252