From: Revalla Hari Krishna <Harikrishna.Revalla@xxxxxxx> [WHY] Clean up the code that requires dccg to be in its own component. [HOW] Move all files under newly created dccg dir and fix the makefiles. Acked-by: Alex Hung <alex.hung@xxxxxxx> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@xxxxxxx> Signed-off-by: Revalla Hari Krishna <Harikrishna.Revalla@xxxxxxx> --- drivers/gpu/drm/amd/display/dc/dccg/Makefile | 7 ++++++- .../gpu/drm/amd/display/dc/{ => dccg}/dcn401/dcn401_dccg.c | 0 .../gpu/drm/amd/display/dc/{ => dccg}/dcn401/dcn401_dccg.h | 0 drivers/gpu/drm/amd/display/dc/dcn401/Makefile | 1 - 4 files changed, 6 insertions(+), 2 deletions(-) rename drivers/gpu/drm/amd/display/dc/{ => dccg}/dcn401/dcn401_dccg.c (100%) rename drivers/gpu/drm/amd/display/dc/{ => dccg}/dcn401/dcn401_dccg.h (100%) diff --git a/drivers/gpu/drm/amd/display/dc/dccg/Makefile b/drivers/gpu/drm/amd/display/dc/dccg/Makefile index bfdce98768f1..1d5cf0f8e79d 100644 --- a/drivers/gpu/drm/amd/display/dc/dccg/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dccg/Makefile @@ -95,4 +95,9 @@ AMD_DAL_DCCG_DCN35 = $(addprefix $(AMDDALPATH)/dc/dccg/dcn35/,$(DCCG_DCN35)) AMD_DISPLAY_FILES += $(AMD_DAL_DCCG_DCN35) ############################################################################### -endif \ No newline at end of file +DCCG_DCN401 = dcn401_dccg.o + +AMD_DAL_DCCG_DCN401 = $(addprefix $(AMDDALPATH)/dc/dccg/dcn401/,$(DCCG_DCN401)) + +AMD_DISPLAY_FILES += $(AMD_DAL_DCCG_DCN401) +endif diff --git a/drivers/gpu/drm/amd/display/dc/dcn401/dcn401_dccg.c b/drivers/gpu/drm/amd/display/dc/dccg/dcn401/dcn401_dccg.c similarity index 100% rename from drivers/gpu/drm/amd/display/dc/dcn401/dcn401_dccg.c rename to drivers/gpu/drm/amd/display/dc/dccg/dcn401/dcn401_dccg.c diff --git a/drivers/gpu/drm/amd/display/dc/dcn401/dcn401_dccg.h b/drivers/gpu/drm/amd/display/dc/dccg/dcn401/dcn401_dccg.h similarity index 100% rename from drivers/gpu/drm/amd/display/dc/dcn401/dcn401_dccg.h rename to drivers/gpu/drm/amd/display/dc/dccg/dcn401/dcn401_dccg.h diff --git a/drivers/gpu/drm/amd/display/dc/dcn401/Makefile b/drivers/gpu/drm/amd/display/dc/dcn401/Makefile index 2e15e639194d..73544559f41f 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn401/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dcn401/Makefile @@ -6,7 +6,6 @@ DCN401 += dcn401_dio_link_encoder.o DCN401 += dcn401_dio_stream_encoder.o DCN401 += dcn401_hubp.o DCN401 += dcn401_mpc.o -DCN401 += dcn401_dccg.o DCN401 += dcn401_hubbub.o AMD_DAL_DCN401 = $(addprefix $(AMDDALPATH)/dc/dcn401/,$(DCN401)) -- 2.34.1