diff options
author | Wesley Chalmers <Wesley.Chalmers@amd.com> | 2021-06-09 13:26:40 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-06-21 17:45:14 -0400 |
commit | d8ddeb155c00a557afb8e0f65280009552acb61e (patch) | |
tree | 0ab1fd006096493a643921c8de62ec3c21275f94 /drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c | |
parent | 068312559d33d90b2802561df7bff35ed407cd73 (diff) | |
download | linux-d8ddeb155c00a557afb8e0f65280009552acb61e.tar.bz2 |
drm/amd/display: Fix incorrect variable name
[WHY]
extended_end_address can only be calculated from the extended_address and
extended_size
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Ashley Thomas <Ashley.Thomas2@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c index 27ec1e6e9c43..fe234760a0f5 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c @@ -152,7 +152,7 @@ static void dpcd_reduce_address_range( const uint32_t reduced_size) { const uint32_t reduced_end_address = END_ADDRESS(reduced_address, reduced_size); - const uint32_t extended_end_address = END_ADDRESS(reduced_address, extended_size); + const uint32_t extended_end_address = END_ADDRESS(extended_address, extended_size); const uint32_t offset = reduced_address - extended_address; if (extended_end_address == reduced_end_address && extended_address == reduced_address) |