]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Move conn_state to header
authorHarry Wentland <harry.wentland@amd.com>
Thu, 19 Oct 2017 18:28:23 +0000 (14:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:41:39 +0000 (16:41 -0500)
We'll need it in amdgpu_dm_mst_types.c as well.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h

index 9c5a5f58bfe1f00d8a3b6c4d644a2293ab36ad29..72a08776a6a66e130f7276766ebe564ae843b1b5 100644 (file)
@@ -1679,19 +1679,6 @@ static int dm_early_init(void *handle)
        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,
                             struct dc_stream_state *new_stream,
                             struct dc_stream_state *old_stream)
index 117521c6a6ed26213c60ec5316df64b66eeaba12..8a1e4f5dbd648cbdc58ce8c62c44a55192f89f57 100644 (file)
@@ -220,6 +220,18 @@ struct dm_atomic_state {
 
 #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);
 struct drm_connector_state *