Skip to content

Commit 7b99330

Browse files
committed
drm/amd/display: move dpcd debugfs members setup
Into the function that creates the debugfs files rather than setting them explicitly in the callers. Tested-by: Thomas Zimmermann <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d090e7d commit 7b99330

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5969,8 +5969,6 @@ static int amdgpu_dm_connector_init(struct amdgpu_display_manager *dm,
59695969

59705970
#if defined(CONFIG_DEBUG_FS)
59715971
connector_debugfs_init(aconnector);
5972-
aconnector->debugfs_dpcd_address = 0;
5973-
aconnector->debugfs_dpcd_size = 0;
59745972
#endif
59755973

59765974
if (connector_type == DRM_MODE_CONNECTOR_DisplayPort

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,9 @@ void connector_debugfs_init(struct amdgpu_dm_connector *connector)
10901090
debugfs_create_file_unsafe("force_yuv420_output", 0644, dir, connector,
10911091
&force_yuv420_output_fops);
10921092

1093+
connector->debugfs_dpcd_address = 0;
1094+
connector->debugfs_dpcd_size = 0;
1095+
10931096
}
10941097

10951098
/*

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ amdgpu_dm_mst_connector_late_register(struct drm_connector *connector)
158158

159159
#if defined(CONFIG_DEBUG_FS)
160160
connector_debugfs_init(amdgpu_dm_connector);
161-
amdgpu_dm_connector->debugfs_dpcd_address = 0;
162-
amdgpu_dm_connector->debugfs_dpcd_size = 0;
163161
#endif
164162

165163
return drm_dp_mst_connector_late_register(connector, port);

0 commit comments

Comments
 (0)