Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Refactoring if and endif statements to enable DC_LOGGER

[Why]
For Header related changes for core

[How]
Refactoring if and endif statements to enable DC_LOGGER

Reviewed-by: Mounika Adhuri <mounika.adhuri@amd.com>
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Lohita Mudimela <lohita.mudimela@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lohita Mudimela and committed by
Alex Deucher
b0420043 a88b19b1

+9 -6
+3 -2
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
··· 50 50 #include "link.h" 51 51 52 52 #include "logger_types.h" 53 + 54 + 55 + #include "yellow_carp_offset.h" 53 56 #undef DC_LOGGER 54 57 #define DC_LOGGER \ 55 58 clk_mgr->base.base.ctx->logger 56 - 57 - #include "yellow_carp_offset.h" 58 59 59 60 #define regCLK1_CLK_PLL_REQ 0x0237 60 61 #define regCLK1_CLK_PLL_REQ_BASE_IDX 0
+3 -3
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
··· 53 53 54 54 55 55 #include "logger_types.h" 56 - #undef DC_LOGGER 57 - #define DC_LOGGER \ 58 - clk_mgr->base.base.ctx->logger 59 56 60 57 61 58 #define MAX_INSTANCE 7 ··· 74 77 { { 0x0001B200, 0x0242DC00, 0, 0, 0, 0, 0, 0 } }, 75 78 { { 0x0001B400, 0x0242E000, 0, 0, 0, 0, 0, 0 } } } }; 76 79 80 + #undef DC_LOGGER 81 + #define DC_LOGGER \ 82 + clk_mgr->base.base.ctx->logger 77 83 #define regCLK1_CLK_PLL_REQ 0x0237 78 84 #define regCLK1_CLK_PLL_REQ_BASE_IDX 0 79 85
+1
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
··· 55 55 #define DC_LOGGER \ 56 56 clk_mgr->base.base.ctx->logger 57 57 58 + 58 59 #define regCLK1_CLK_PLL_REQ 0x0237 59 60 #define regCLK1_CLK_PLL_REQ_BASE_IDX 0 60 61