Commit f440ff44 authored by Wambui Karuga's avatar Wambui Karuga Committed by Alex Deucher

drm/amd: correct "_LENTH" mispelling in constant

Correct the "_LENTH" mispelling in the AMDGPU_MAX_TIMEOUT_PARAM_LENGTH
constant.
Signed-off-by: default avatarWambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7e0ff20c
...@@ -107,7 +107,7 @@ struct amdgpu_mgpu_info ...@@ -107,7 +107,7 @@ struct amdgpu_mgpu_info
uint32_t num_apu; uint32_t num_apu;
}; };
#define AMDGPU_MAX_TIMEOUT_PARAM_LENTH 256 #define AMDGPU_MAX_TIMEOUT_PARAM_LENGTH 256
/* /*
* Modules parameters. * Modules parameters.
...@@ -125,7 +125,7 @@ extern int amdgpu_disp_priority; ...@@ -125,7 +125,7 @@ extern int amdgpu_disp_priority;
extern int amdgpu_hw_i2c; extern int amdgpu_hw_i2c;
extern int amdgpu_pcie_gen2; extern int amdgpu_pcie_gen2;
extern int amdgpu_msi; extern int amdgpu_msi;
extern char amdgpu_lockup_timeout[AMDGPU_MAX_TIMEOUT_PARAM_LENTH]; extern char amdgpu_lockup_timeout[AMDGPU_MAX_TIMEOUT_PARAM_LENGTH];
extern int amdgpu_dpm; extern int amdgpu_dpm;
extern int amdgpu_fw_load_type; extern int amdgpu_fw_load_type;
extern int amdgpu_aspm; extern int amdgpu_aspm;
......
...@@ -2628,9 +2628,9 @@ static int amdgpu_device_get_job_timeout_settings(struct amdgpu_device *adev) ...@@ -2628,9 +2628,9 @@ static int amdgpu_device_get_job_timeout_settings(struct amdgpu_device *adev)
else else
adev->compute_timeout = MAX_SCHEDULE_TIMEOUT; adev->compute_timeout = MAX_SCHEDULE_TIMEOUT;
if (strnlen(input, AMDGPU_MAX_TIMEOUT_PARAM_LENTH)) { if (strnlen(input, AMDGPU_MAX_TIMEOUT_PARAM_LENGTH)) {
while ((timeout_setting = strsep(&input, ",")) && while ((timeout_setting = strsep(&input, ",")) &&
strnlen(timeout_setting, AMDGPU_MAX_TIMEOUT_PARAM_LENTH)) { strnlen(timeout_setting, AMDGPU_MAX_TIMEOUT_PARAM_LENGTH)) {
ret = kstrtol(timeout_setting, 0, &timeout); ret = kstrtol(timeout_setting, 0, &timeout);
if (ret) if (ret)
return ret; return ret;
......
...@@ -101,7 +101,7 @@ int amdgpu_disp_priority = 0; ...@@ -101,7 +101,7 @@ int amdgpu_disp_priority = 0;
int amdgpu_hw_i2c = 0; int amdgpu_hw_i2c = 0;
int amdgpu_pcie_gen2 = -1; int amdgpu_pcie_gen2 = -1;
int amdgpu_msi = -1; int amdgpu_msi = -1;
char amdgpu_lockup_timeout[AMDGPU_MAX_TIMEOUT_PARAM_LENTH]; char amdgpu_lockup_timeout[AMDGPU_MAX_TIMEOUT_PARAM_LENGTH];
int amdgpu_dpm = -1; int amdgpu_dpm = -1;
int amdgpu_fw_load_type = -1; int amdgpu_fw_load_type = -1;
int amdgpu_aspm = -1; int amdgpu_aspm = -1;
......
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