drm/amd/display: Move CLK_BASE_INNER macro
authorEric Yang <Eric.Yang2@amd.com>
Tue, 7 May 2019 21:29:11 +0000 (17:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 May 2019 15:39:30 +0000 (10:39 -0500)
This macro is specificly used by RV1. Move it to the appropriate
location.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/rv1_clk_mgr_clk.c
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h

index 887814c65bacd27ae78c7ca83274b30d342513ab..e99af225845a6523fc024ebfe4d81f68174eb467 100644 (file)
 
 #include "dce/dce_clk_mgr.h"
 
+#define CLK_BASE_INNER(inst) \
+       CLK_BASE__INST ## inst ## _SEG0
+
+
 #define CLK_REG(reg_name, block, inst)\
        CLK_BASE(mm ## block ## _ ## inst ## _ ## reg_name ## _BASE_IDX) + \
                                        mm ## block ## _ ## inst ## _ ## reg_name
index 42f72c44e6f9f40c0fbfacd37ce753e732f30395..53f6286b2fd60d2431670481f5dc4ed0dbd35486 100644 (file)
@@ -49,8 +49,7 @@
        clk_mgr->ctx->logger
 
 
-#define CLK_BASE_INNER(inst) \
-       CLK_BASE__INST ## inst ## _SEG0
+
 
 #define CLK_BASE(inst) \
        CLK_BASE_INNER(inst)