Commit c99c7d6e authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher

drm/amd/display: 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
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 070706c0
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <drm/drmP.h> #include <drm/drmP.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include "dc.h"
/* /*
* This file contains the definition for amdgpu_display_manager * This file contains the definition for amdgpu_display_manager
...@@ -53,6 +52,7 @@ ...@@ -53,6 +52,7 @@
struct amdgpu_device; struct amdgpu_device;
struct drm_device; struct drm_device;
struct amdgpu_dm_irq_handler_data; struct amdgpu_dm_irq_handler_data;
struct dc;
struct amdgpu_dm_prev_state { struct amdgpu_dm_prev_state {
struct drm_framebuffer *fb; struct drm_framebuffer *fb;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "amdgpu_mode.h" #include "amdgpu_mode.h"
#include "amdgpu_dm.h" #include "amdgpu_dm.h"
#include "dc.h"
#include "modules/color/color_gamma.h" #include "modules/color/color_gamma.h"
#define MAX_DRM_LUT_VALUE 0xFFFF #define MAX_DRM_LUT_VALUE 0xFFFF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment