Commit 6cb445e8 authored by Bhawanpreet Lakha's avatar Bhawanpreet Lakha Committed by Alex Deucher

drm/amdgpu: Use PSP_FW_NAME_LEN instead of magic number

Signed-off-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c4cb773c
...@@ -2631,7 +2631,7 @@ int psp_init_ta_microcode(struct psp_context *psp, ...@@ -2631,7 +2631,7 @@ int psp_init_ta_microcode(struct psp_context *psp,
const char *chip_name) const char *chip_name)
{ {
struct amdgpu_device *adev = psp->adev; struct amdgpu_device *adev = psp->adev;
char fw_name[30]; char fw_name[PSP_FW_NAME_LEN];
const struct ta_firmware_header_v2_0 *ta_hdr; const struct ta_firmware_header_v2_0 *ta_hdr;
int err = 0; int err = 0;
int ta_index = 0; int ta_index = 0;
......
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