drm/amd/powerplay: fix spelling mistake "Attemp" -> "Attempt"
There are several spelling mistakes in PP_ASSERT_WITH_CODE messages. Fix these. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
54f73df4ca
commit
269a0bf79b
|
@ -128,20 +128,20 @@ int vega12_enable_smc_features(struct pp_hwmgr *hwmgr,
|
||||||
if (enable) {
|
if (enable) {
|
||||||
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc_with_parameter(hwmgr,
|
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc_with_parameter(hwmgr,
|
||||||
PPSMC_MSG_EnableSmuFeaturesLow, smu_features_low) == 0,
|
PPSMC_MSG_EnableSmuFeaturesLow, smu_features_low) == 0,
|
||||||
"[EnableDisableSMCFeatures] Attemp to enable SMU features Low failed!",
|
"[EnableDisableSMCFeatures] Attempt to enable SMU features Low failed!",
|
||||||
return -EINVAL);
|
return -EINVAL);
|
||||||
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc_with_parameter(hwmgr,
|
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc_with_parameter(hwmgr,
|
||||||
PPSMC_MSG_EnableSmuFeaturesHigh, smu_features_high) == 0,
|
PPSMC_MSG_EnableSmuFeaturesHigh, smu_features_high) == 0,
|
||||||
"[EnableDisableSMCFeatures] Attemp to enable SMU features High failed!",
|
"[EnableDisableSMCFeatures] Attempt to enable SMU features High failed!",
|
||||||
return -EINVAL);
|
return -EINVAL);
|
||||||
} else {
|
} else {
|
||||||
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc_with_parameter(hwmgr,
|
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc_with_parameter(hwmgr,
|
||||||
PPSMC_MSG_DisableSmuFeaturesLow, smu_features_low) == 0,
|
PPSMC_MSG_DisableSmuFeaturesLow, smu_features_low) == 0,
|
||||||
"[EnableDisableSMCFeatures] Attemp to disable SMU features Low failed!",
|
"[EnableDisableSMCFeatures] Attempt to disable SMU features Low failed!",
|
||||||
return -EINVAL);
|
return -EINVAL);
|
||||||
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc_with_parameter(hwmgr,
|
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc_with_parameter(hwmgr,
|
||||||
PPSMC_MSG_DisableSmuFeaturesHigh, smu_features_high) == 0,
|
PPSMC_MSG_DisableSmuFeaturesHigh, smu_features_high) == 0,
|
||||||
"[EnableDisableSMCFeatures] Attemp to disable SMU features High failed!",
|
"[EnableDisableSMCFeatures] Attempt to disable SMU features High failed!",
|
||||||
return -EINVAL);
|
return -EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,13 +158,13 @@ int vega12_get_enabled_smc_features(struct pp_hwmgr *hwmgr,
|
||||||
|
|
||||||
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc(hwmgr,
|
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc(hwmgr,
|
||||||
PPSMC_MSG_GetEnabledSmuFeaturesLow) == 0,
|
PPSMC_MSG_GetEnabledSmuFeaturesLow) == 0,
|
||||||
"[GetEnabledSMCFeatures] Attemp to get SMU features Low failed!",
|
"[GetEnabledSMCFeatures] Attempt to get SMU features Low failed!",
|
||||||
return -EINVAL);
|
return -EINVAL);
|
||||||
smc_features_low = smu9_get_argument(hwmgr);
|
smc_features_low = smu9_get_argument(hwmgr);
|
||||||
|
|
||||||
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc(hwmgr,
|
PP_ASSERT_WITH_CODE(smu9_send_msg_to_smc(hwmgr,
|
||||||
PPSMC_MSG_GetEnabledSmuFeaturesHigh) == 0,
|
PPSMC_MSG_GetEnabledSmuFeaturesHigh) == 0,
|
||||||
"[GetEnabledSMCFeatures] Attemp to get SMU features High failed!",
|
"[GetEnabledSMCFeatures] Attempt to get SMU features High failed!",
|
||||||
return -EINVAL);
|
return -EINVAL);
|
||||||
smc_features_high = smu9_get_argument(hwmgr);
|
smc_features_high = smu9_get_argument(hwmgr);
|
||||||
|
|
||||||
|
|
|
@ -316,20 +316,20 @@ int vega20_enable_smc_features(struct pp_hwmgr *hwmgr,
|
||||||
if (enable) {
|
if (enable) {
|
||||||
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc_with_parameter(hwmgr,
|
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc_with_parameter(hwmgr,
|
||||||
PPSMC_MSG_EnableSmuFeaturesLow, smu_features_low)) == 0,
|
PPSMC_MSG_EnableSmuFeaturesLow, smu_features_low)) == 0,
|
||||||
"[EnableDisableSMCFeatures] Attemp to enable SMU features Low failed!",
|
"[EnableDisableSMCFeatures] Attempt to enable SMU features Low failed!",
|
||||||
return ret);
|
return ret);
|
||||||
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc_with_parameter(hwmgr,
|
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc_with_parameter(hwmgr,
|
||||||
PPSMC_MSG_EnableSmuFeaturesHigh, smu_features_high)) == 0,
|
PPSMC_MSG_EnableSmuFeaturesHigh, smu_features_high)) == 0,
|
||||||
"[EnableDisableSMCFeatures] Attemp to enable SMU features High failed!",
|
"[EnableDisableSMCFeatures] Attempt to enable SMU features High failed!",
|
||||||
return ret);
|
return ret);
|
||||||
} else {
|
} else {
|
||||||
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc_with_parameter(hwmgr,
|
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc_with_parameter(hwmgr,
|
||||||
PPSMC_MSG_DisableSmuFeaturesLow, smu_features_low)) == 0,
|
PPSMC_MSG_DisableSmuFeaturesLow, smu_features_low)) == 0,
|
||||||
"[EnableDisableSMCFeatures] Attemp to disable SMU features Low failed!",
|
"[EnableDisableSMCFeatures] Attempt to disable SMU features Low failed!",
|
||||||
return ret);
|
return ret);
|
||||||
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc_with_parameter(hwmgr,
|
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc_with_parameter(hwmgr,
|
||||||
PPSMC_MSG_DisableSmuFeaturesHigh, smu_features_high)) == 0,
|
PPSMC_MSG_DisableSmuFeaturesHigh, smu_features_high)) == 0,
|
||||||
"[EnableDisableSMCFeatures] Attemp to disable SMU features High failed!",
|
"[EnableDisableSMCFeatures] Attempt to disable SMU features High failed!",
|
||||||
return ret);
|
return ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -347,12 +347,12 @@ int vega20_get_enabled_smc_features(struct pp_hwmgr *hwmgr,
|
||||||
|
|
||||||
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc(hwmgr,
|
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc(hwmgr,
|
||||||
PPSMC_MSG_GetEnabledSmuFeaturesLow)) == 0,
|
PPSMC_MSG_GetEnabledSmuFeaturesLow)) == 0,
|
||||||
"[GetEnabledSMCFeatures] Attemp to get SMU features Low failed!",
|
"[GetEnabledSMCFeatures] Attempt to get SMU features Low failed!",
|
||||||
return ret);
|
return ret);
|
||||||
smc_features_low = vega20_get_argument(hwmgr);
|
smc_features_low = vega20_get_argument(hwmgr);
|
||||||
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc(hwmgr,
|
PP_ASSERT_WITH_CODE((ret = vega20_send_msg_to_smc(hwmgr,
|
||||||
PPSMC_MSG_GetEnabledSmuFeaturesHigh)) == 0,
|
PPSMC_MSG_GetEnabledSmuFeaturesHigh)) == 0,
|
||||||
"[GetEnabledSMCFeatures] Attemp to get SMU features High failed!",
|
"[GetEnabledSMCFeatures] Attempt to get SMU features High failed!",
|
||||||
return ret);
|
return ret);
|
||||||
smc_features_high = vega20_get_argument(hwmgr);
|
smc_features_high = vega20_get_argument(hwmgr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue