提交 ab631311 编写于 作者: C Colin Ian King 提交者: Alex Deucher

drm/amd/powerplay: fix a few spelling mistakes

There are a few spelling mistakes "unknow" -> "unknown" and
"enabeld" -> "enabled". Fix these.
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 f3eb9b8f
...@@ -39,7 +39,7 @@ static const char* __smu_message_names[] = { ...@@ -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) const char *smu_get_message_name(struct smu_context *smu, enum smu_message_type type)
{ {
if (type < 0 || type >= SMU_MSG_MAX_COUNT) if (type < 0 || type >= SMU_MSG_MAX_COUNT)
return "unknow smu message"; return "unknown smu message";
return __smu_message_names[type]; return __smu_message_names[type];
} }
...@@ -52,7 +52,7 @@ static const char* __smu_feature_names[] = { ...@@ -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) const char *smu_get_feature_name(struct smu_context *smu, enum smu_feature_mask feature)
{ {
if (feature < 0 || feature >= SMU_FEATURE_COUNT) if (feature < 0 || feature >= SMU_FEATURE_COUNT)
return "unknow smu feature"; return "unknown smu feature";
return __smu_feature_names[feature]; return __smu_feature_names[feature];
} }
...@@ -87,7 +87,7 @@ size_t smu_sys_get_pp_feature_mask(struct smu_context *smu, char *buf) ...@@ -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]), smu_get_feature_name(smu, sort_feature[i]),
i, i,
!!smu_feature_is_enabled(smu, sort_feature[i]) ? !!smu_feature_is_enabled(smu, sort_feature[i]) ?
"enabeld" : "disabled"); "enabled" : "disabled");
} }
failed: failed:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册