summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_uc_fw.c
diff options
context:
space:
mode:
authorBommithi Sakeena <bommithi.sakeena@intel.com>2023-11-17 19:06:18 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:45:05 +0300
commitadce1b393f90c349820cb0cb907f94ce9b3a4485 (patch)
tree69523a0777e884054ba873d0aec0af9c3e292ddc /drivers/gpu/drm/xe/xe_uc_fw.c
parenta409901f516cf5e25180d98a510708013b33b8ee (diff)
downloadlinux-adce1b393f90c349820cb0cb907f94ce9b3a4485.tar.xz
drm/xe: Encapsulate all the module parameters
Encapsulate all the module parameters in one single global struct variable. This also removes the extra xe_module.h from includes. v2: naming consistency as suggested by Jani and Lucas v3: fix checkpatch errors/warnings v4: adding blank line after struct declaration Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Bommithi Sakeena <bommithi.sakeena@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_uc_fw.c')
-rw-r--r--drivers/gpu/drm/xe/xe_uc_fw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_uc_fw.c b/drivers/gpu/drm/xe/xe_uc_fw.c
index 91d4a2272ee7..2a5f361e8270 100644
--- a/drivers/gpu/drm/xe/xe_uc_fw.c
+++ b/drivers/gpu/drm/xe/xe_uc_fw.c
@@ -220,11 +220,11 @@ uc_fw_override(struct xe_uc_fw *uc_fw)
/* empty string disables, but it's not allowed for GuC */
switch (uc_fw->type) {
case XE_UC_FW_TYPE_GUC:
- if (xe_guc_firmware_path && *xe_guc_firmware_path)
- path_override = xe_guc_firmware_path;
+ if (xe_modparam.guc_firmware_path && *xe_modparam.guc_firmware_path)
+ path_override = xe_modparam.guc_firmware_path;
break;
case XE_UC_FW_TYPE_HUC:
- path_override = xe_huc_firmware_path;
+ path_override = xe_modparam.huc_firmware_path;
break;
default:
break;