Commit b3734397 authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: Move conn_state to header

We'll need it in amdgpu_dm_mst_types.c as well.
Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2d7d273d
...@@ -1679,19 +1679,6 @@ static int dm_early_init(void *handle) ...@@ -1679,19 +1679,6 @@ static int dm_early_init(void *handle)
return 0; return 0;
} }
struct dm_connector_state {
struct drm_connector_state base;
enum amdgpu_rmx_type scaling;
uint8_t underscan_vborder;
uint8_t underscan_hborder;
bool underscan_enable;
struct mod_freesync_user_enable user_enable;
};
#define to_dm_connector_state(x)\
container_of((x), struct dm_connector_state, base)
static bool modeset_required(struct drm_crtc_state *crtc_state, static bool modeset_required(struct drm_crtc_state *crtc_state,
struct dc_stream_state *new_stream, struct dc_stream_state *new_stream,
struct dc_stream_state *old_stream) struct dc_stream_state *old_stream)
......
...@@ -220,6 +220,18 @@ struct dm_atomic_state { ...@@ -220,6 +220,18 @@ struct dm_atomic_state {
#define to_dm_atomic_state(x) container_of(x, struct dm_atomic_state, base) #define to_dm_atomic_state(x) container_of(x, struct dm_atomic_state, base)
struct dm_connector_state {
struct drm_connector_state base;
enum amdgpu_rmx_type scaling;
uint8_t underscan_vborder;
uint8_t underscan_hborder;
bool underscan_enable;
struct mod_freesync_user_enable user_enable;
};
#define to_dm_connector_state(x)\
container_of((x), struct dm_connector_state, base)
void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector); void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector);
struct drm_connector_state * struct drm_connector_state *
......
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