Commit 3c1fcc55 authored by Roman Li's avatar Roman Li Committed by Alex Deucher

drm/amd/display: fix typo "to found" -> "to find"

[Why]
Typo in amdgpu_dm error message:
"Failed to found connector for link!"
[How]
1. Replace with:
"Failed to find connector for link!"
2. Fix indentation checkpatch warnings.
Signed-off-by: default avatarRoman Li <roman.li@amd.com>
Reviewed-by: default avatarZhan Liu <Zhan.Liu@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9b31b4e8
...@@ -400,8 +400,8 @@ bool dm_helpers_dp_mst_start_top_mgr( ...@@ -400,8 +400,8 @@ bool dm_helpers_dp_mst_start_top_mgr(
struct amdgpu_dm_connector *aconnector = link->priv; struct amdgpu_dm_connector *aconnector = link->priv;
if (!aconnector) { if (!aconnector) {
DRM_ERROR("Failed to found connector for link!"); DRM_ERROR("Failed to find connector for link!");
return false; return false;
} }
if (boot) { if (boot) {
...@@ -423,8 +423,8 @@ void dm_helpers_dp_mst_stop_top_mgr( ...@@ -423,8 +423,8 @@ void dm_helpers_dp_mst_stop_top_mgr(
struct amdgpu_dm_connector *aconnector = link->priv; struct amdgpu_dm_connector *aconnector = link->priv;
if (!aconnector) { if (!aconnector) {
DRM_ERROR("Failed to found connector for link!"); DRM_ERROR("Failed to find connector for link!");
return; return;
} }
DRM_INFO("DM_MST: stopping TM on aconnector: %p [id: %d]\n", DRM_INFO("DM_MST: stopping TM on aconnector: %p [id: %d]\n",
...@@ -445,7 +445,7 @@ bool dm_helpers_dp_read_dpcd( ...@@ -445,7 +445,7 @@ bool dm_helpers_dp_read_dpcd(
struct amdgpu_dm_connector *aconnector = link->priv; struct amdgpu_dm_connector *aconnector = link->priv;
if (!aconnector) { if (!aconnector) {
DRM_ERROR("Failed to found connector for link!"); DRM_ERROR("Failed to find connector for link!");
return false; return false;
} }
...@@ -463,7 +463,7 @@ bool dm_helpers_dp_write_dpcd( ...@@ -463,7 +463,7 @@ bool dm_helpers_dp_write_dpcd(
struct amdgpu_dm_connector *aconnector = link->priv; struct amdgpu_dm_connector *aconnector = link->priv;
if (!aconnector) { if (!aconnector) {
DRM_ERROR("Failed to found connector for link!"); DRM_ERROR("Failed to find connector for link!");
return false; return false;
} }
...@@ -483,7 +483,7 @@ bool dm_helpers_submit_i2c( ...@@ -483,7 +483,7 @@ bool dm_helpers_submit_i2c(
bool result; bool result;
if (!aconnector) { if (!aconnector) {
DRM_ERROR("Failed to found connector for link!"); DRM_ERROR("Failed to find connector for link!");
return false; return false;
} }
...@@ -538,7 +538,7 @@ bool dm_helpers_is_dp_sink_present(struct dc_link *link) ...@@ -538,7 +538,7 @@ bool dm_helpers_is_dp_sink_present(struct dc_link *link)
struct amdgpu_dm_connector *aconnector = link->priv; struct amdgpu_dm_connector *aconnector = link->priv;
if (!aconnector) { if (!aconnector) {
BUG_ON("Failed to found connector for link!"); BUG_ON("Failed to find connector for link!");
return true; return true;
} }
......
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