]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amd/display: Fix incorrect variable name
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Wed, 9 Jun 2021 17:26:40 +0000 (13:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Jun 2021 21:45:14 +0000 (17:45 -0400)
[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>
drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c

index 27ec1e6e9c4338f80b204c5c1523d1de9a06bd9c..fe234760a0f596c9207e6b26c71ea592ddaa09b6 100644 (file)
@@ -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)