Skip to content

Commit

Permalink
drm/amd/powerplay: fix a few spelling mistakes
Browse files Browse the repository at this point in the history
There are a few spelling mistakes "unknow" -> "unknown" and
"enabeld" -> "enabled". Fix these.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Colin Ian King authored and Alex Deucher committed Aug 2, 2019
1 parent f3eb9b8 commit ab63131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static const char* __smu_message_names[] = {
const char *smu_get_message_name(struct smu_context *smu, enum smu_message_type type)
{
if (type < 0 || type >= SMU_MSG_MAX_COUNT)
return "unknow smu message";
return "unknown smu message";
return __smu_message_names[type];
}

Expand All @@ -52,7 +52,7 @@ static const char* __smu_feature_names[] = {
const char *smu_get_feature_name(struct smu_context *smu, enum smu_feature_mask feature)
{
if (feature < 0 || feature >= SMU_FEATURE_COUNT)
return "unknow smu feature";
return "unknown smu feature";
return __smu_feature_names[feature];
}

Expand Down Expand Up @@ -87,7 +87,7 @@ size_t smu_sys_get_pp_feature_mask(struct smu_context *smu, char *buf)
smu_get_feature_name(smu, sort_feature[i]),
i,
!!smu_feature_is_enabled(smu, sort_feature[i]) ?
"enabeld" : "disabled");
"enabled" : "disabled");
}

failed:
Expand Down

0 comments on commit ab63131

Please sign in to comment.