drm/amd/dc: Disentangle dc.h include from amdgpu.h
Subsystems (3)
PATCH 1/1 drm/amd/dc: Disentangle dc.h include from amdgpu.h
Use forward declaration in amdgpu_dm.h for struct dc instand of include dc.h to make header files more standalone
Change-Id I733a7e8499949aa9411e943230f9f50da6a8b8a2
Signed-off-by Rex Zhu <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +1 -1
@@ -28,7 +28,6 @@#include <drm/drmP.h> #include <drm/drm_atomic.h> -#include "dc.h" /* * This file contains the definition for amdgpu_display_manager
@@ -53,6 +52,7 @@struct amdgpu_device ;struct drm_device ;struct amdgpu_dm_irq_handler_data ; +struct dc ;struct amdgpu_dm_prev_state {struct drm_framebuffer *fb;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +1 -0
@@ -25,6 +25,7 @@#include "amdgpu_mode.h" #include "amdgpu_dm.h" +#include "dc.h" #include "modules/color/color_gamma.h" #define MAX_DRM_LUT_VALUE 0xFFFF
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1522309467-10887-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Harry Wentland
Reviewed-byQuoted 5 lines · Rex Zhu
Use forward declaration in
amdgpu_dm.hfor struct dc instand of includedc.hto make header files more standaloneChange-Id I733a7e8499949aa9411e943230f9f50da6a8b8a2Signed-off-by Rex Zhu <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Please drop the Change-Id before merging this.
Harry
Quoted 31 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +1
-1@@ -28,7 +28,6 @@#include <drm/drmP.h> #include <drm/drm_atomic.h> -#include "dc.h" /* * This file contains the definition for amdgpu_display_manager @@ -53,6 +52,7 @@struct amdgpu_device ;struct drm_device ;struct amdgpu_dm_irq_handler_data ; +struct dc ;struct amdgpu_dm_prev_state {struct drm_framebuffer *fb;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +0
-0
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c line 31
Quoted 7 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +1
-0@@ -25,6 +25,7 @@#include "amdgpu_mode.h" #include "amdgpu_dm.h" +#include "dc.h" #include "modules/color/color_gamma.h" #define MAX_DRM_LUT_VALUE 0xFFFF
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx