drm/amd/display: Use MAX_PIPES for DTO reg arrays
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 3 Aug 2017 20:41:48 +0000 (16:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:16:41 +0000 (18:16 -0400)
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>
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h

index 238c03f..c45e2f7 100644 (file)
@@ -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 {