drm/amd/display: change name from dc_link_get_verified_link_cap to dc_link_get_link_cap
authorSamson Tam <Samson.Tam@amd.com>
Mon, 1 Apr 2019 21:07:21 +0000 (17:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Apr 2019 05:21:19 +0000 (00:21 -0500)
[Why]
DM doesn't need to know which link cap is being retrieved ( verified
 or preferred ).  Let DC figure it out.

[How]
Change name.

Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc_link.h

index 4887d06110019fbee7d6de1ed89c93e8989aa51f..dda10b1f8574bffe42b154db6ac09517422da639 100644 (file)
@@ -597,7 +597,7 @@ uint32_t dc_link_bandwidth_kbps(
 
 }
 
-const struct dc_link_settings *dc_link_get_verified_link_cap(
+const struct dc_link_settings *dc_link_get_link_cap(
                const struct dc_link *link)
 {
        if (link->preferred_link_setting.lane_count != LANE_COUNT_UNKNOWN &&
index ba7502f3d0eb25c949b9617060fc9e55c2a889eb..a6424c70f4c5a3e6425d07adf1ccfa46c78bf497 100644 (file)
@@ -1548,8 +1548,7 @@ bool dp_validate_mode_timing(
                timing->v_addressable == (uint32_t) 480)
                return true;
 
-       /* We always use verified link settings */
-       link_setting = dc_link_get_verified_link_cap(link);
+       link_setting = dc_link_get_link_cap(link);
 
        /* TODO: DYNAMIC_VALIDATION needs to be implemented */
        /*if (flags.DYNAMIC_VALIDATION == 1 &&
index 4e26d6e93b315fc61d4eee5dd83452f05872f4ba..cc7ffac64c9611b00c254300e47c923501bdaacc 100644 (file)
@@ -250,7 +250,7 @@ uint32_t dc_link_bandwidth_kbps(
        const struct dc_link *link,
        const struct dc_link_settings *link_setting);
 
-const struct dc_link_settings *dc_link_get_verified_link_cap(
+const struct dc_link_settings *dc_link_get_link_cap(
                const struct dc_link *link);
 
 bool dc_submit_i2c(