From: Alex Deucher Date: Fri, 13 Oct 2017 18:04:26 +0000 (-0400) Subject: drm/amd/display: fix typo in function name X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1daf8c63480b35b967a63a40457c1b0ad866ee81;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: fix typo in function name s/amdgpu_dm_find_first_crct_matching_connector/ amdgpu_dm_find_first_crtc_matching_connector/ And while here, make it static. Reviewed-by: Harry Wentland Acked-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index f9b57697be70..c2031eb5833f 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -568,9 +568,9 @@ static int dm_suspend(void *handle) return ret; } -struct amdgpu_dm_connector *amdgpu_dm_find_first_crct_matching_connector( - struct drm_atomic_state *state, - struct drm_crtc *crtc) +static struct amdgpu_dm_connector * +amdgpu_dm_find_first_crtc_matching_connector(struct drm_atomic_state *state, + struct drm_crtc *crtc) { uint32_t i; struct drm_connector_state *new_con_state; @@ -4110,7 +4110,7 @@ void amdgpu_dm_atomic_commit_tail( dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); new_stream = dm_new_crtc_state->stream; - aconnector = amdgpu_dm_find_first_crct_matching_connector( + aconnector = amdgpu_dm_find_first_crtc_matching_connector( state, &new_crtcs[i]->base); if (!aconnector) { @@ -4396,7 +4396,7 @@ static int dm_update_crtcs_state( dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); acrtc = to_amdgpu_crtc(crtc); - aconnector = amdgpu_dm_find_first_crct_matching_connector(state, crtc); + aconnector = amdgpu_dm_find_first_crtc_matching_connector(state, crtc); /* TODO This hack should go away */ if (aconnector) { diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h index 1c55a0b5cd15..aca061aa4643 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h @@ -226,11 +226,6 @@ extern const struct amdgpu_ip_block_version dm_ip_block; void amdgpu_dm_update_connector_after_detect( struct amdgpu_dm_connector *aconnector); -struct amdgpu_dm_connector *amdgpu_dm_find_first_crct_matching_connector( - struct drm_atomic_state *state, - struct drm_crtc *crtc); - - struct amdgpu_framebuffer; struct amdgpu_display_manager; struct dc_validation_set;