From: Dmytro Laktyushkin Date: Thu, 3 Aug 2017 20:41:48 +0000 (-0400) Subject: drm/amd/display: Use MAX_PIPES for DTO reg arrays X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=641106d3fab8790af12c71e750d9b6287ffc75ce;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Use MAX_PIPES for DTO reg arrays Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h index 238c03f14959..c45e2f76189e 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h @@ -107,9 +107,9 @@ struct dce110_clk_src_regs { /* below are for DTO. * todo: should probably use different struct to not waste space */ - uint32_t PHASE[4]; - uint32_t MODULO[4]; - uint32_t PIXEL_RATE_CNTL[4]; + uint32_t PHASE[MAX_PIPES]; + uint32_t MODULO[MAX_PIPES]; + uint32_t PIXEL_RATE_CNTL[MAX_PIPES]; }; struct dce110_clk_src {