drm/amd/display: Disentangle dc.h include from amdgpu.h
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 30 Mar 2018 05:05:44 +0000 (13:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Apr 2018 18:07:55 +0000 (13:07 -0500)
Use forward declaration in amdgpu_dm.h for struct dc instand
of include dc.h to make header files more standalone

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c

index b68400c1154b46659bd4e8728de8dcd07532b744..3af699b24e10d12cb83392c4ce46fc3045630e8b 100644 (file)
@@ -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;
index f6cb502c303f3e76fac70c1f797525e78e940a48..ef5fad8c5aac6904a0fc073e172ebd265d4c80e7 100644 (file)
@@ -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