[PATCH 10/77] drm/amd/display: Use MAX_PIPES for DTO reg arrays
Harry Wentland
harry.wentland at amd.com
Thu Aug 31 18:08:05 UTC 2017
From: Dmytro Laktyushkin <Dmytro.Laktyushkin at amd.com>
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h | 6 +++---
1 file 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 {
--
2.11.0
More information about the amd-gfx
mailing list