summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dce
diff options
context:
space:
mode:
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>2017-08-03 23:41:48 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-09-27 01:16:41 +0300
commit641106d3fab8790af12c71e750d9b6287ffc75ce (patch)
tree3be972e5acd3d0e264030204ec4dc510340b5e2d /drivers/gpu/drm/amd/display/dc/dce
parentfb3466a450cc4684654367ae2f47fc3fc7846574 (diff)
downloadlinux-641106d3fab8790af12c71e750d9b6287ffc75ce.tar.xz
drm/amd/display: Use MAX_PIPES for DTO reg arrays
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h6
1 files changed, 3 insertions, 3 deletions
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 {