Skip to contentSkip to conversation

drm/amd/display: Fix spelling mistake of function name

PATCH Applied Colin King 3 participants 3 messages Jan 20, 2021

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 drm/amd/display: Fix spelling mistake of function name

From: Colin Ian King <[email protected]>

There are two spelling mistakes of the function name, fix this by using __func__ instead of a hard coded name string.

---
 drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +2 -2
index c16af3983fdb..91d4130cd2cb 100644
@@ -1602,7 +1602,7 @@ static bool dc_link_construct(struct dc_link *link,
 
 	link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED;
 
-	DC_LOG_DC("BIOS object table - dc_link_contruct finished successfully.\n");
+	DC_LOG_DC("BIOS object table - %s finished successfully.\n", __func__);
 	return true;
 device_tag_fail:
 	link->link_enc->funcs->destroy(&link->link_enc);
@@ -1619,7 +1619,7 @@ static bool dc_link_construct(struct dc_link *link,
 		link->hpd_gpio = NULL;
 	}
 
-	DC_LOG_DC("BIOS object table - dc_link_contruct failed.\n");
+	DC_LOG_DC("BIOS object table - %s failed.\n", __func__);
 	kfree(info);
 
 	return false;
Signature · 1 line
2.29.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Colin King

From: Colin Ian King <[email protected]>

Harry

Quoted 31 lines

There are two spelling mistakes of the function name, fix this by using __func__ instead of a hard coded name string.

---
  drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +2 -2
index c16af3983fdb..91d4130cd2cb 100644
@@ -1602,7 +1602,7 @@ static bool dc_link_construct(struct dc_link *link,
 
  	link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED;
 
-	DC_LOG_DC("BIOS object table - dc_link_contruct finished successfully.\n");
+	DC_LOG_DC("BIOS object table - %s finished successfully.\n", __func__);
  	return true;
  device_tag_fail:
  	link->link_enc->funcs->destroy(&link->link_enc);
@@ -1619,7 +1619,7 @@ static bool dc_link_construct(struct dc_link *link,
  		link->hpd_gpio = NULL;
  	}
 
-	DC_LOG_DC("BIOS object table - dc_link_contruct failed.\n");
+	DC_LOG_DC("BIOS object table - %s failed.\n", __func__);
  	kfree(info);
 
  	return false;
Applied
#2 lore raw

Applied. Thanks!

Alex

Quoted 44 lines · Harry Wentland
Quoted 2 lines · Colin King

From: Colin Ian King <[email protected]>

Harry

Quoted 23 lines

There are two spelling mistakes of the function name, fix this by using __func__ instead of a hard coded name string.

---
  drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +1 -1
index c16af3983fdb..91d4130cd2cb 100644
@@ -1602,7 +1602,7 @@ static bool dc_link_construct(struct dc_link *link,
 
      link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED;
 
-     DC_LOG_DC("BIOS object table - dc_link_contruct finished successfully.\n");
+     DC_LOG_DC("BIOS object table - %s finished successfully.\n", __func__);
      return true;
  device_tag_fail:
      link->link_enc->funcs->destroy(&link->link_enc);

drivers/gpu/drm/amd/display/dc/core/dc_link.c static bool dc_link_construct(struct dc_link *link, · line 1625

Quoted 8 lines
drivers/gpu/drm/amd/display/dc/core/dc_link.c +1 -1
@@ -1619,7 +1619,7 @@ static bool dc_link_construct(struct dc_link *link,
              link->hpd_gpio = NULL;
      }
 
-     DC_LOG_DC("BIOS object table - dc_link_contruct failed.\n");
+     DC_LOG_DC("BIOS object table - %s failed.\n", __func__);
      kfree(info);
 
      return false;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx