summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_reg_sr.h
diff options
context:
space:
mode:
authorGustavo Sousa <gustavo.sousa@intel.com>2023-06-09 17:38:14 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:35:20 +0300
commit1011812c642c664b254986fb34264c2ee8d2bb50 (patch)
treeac761aaa563b21a4d21a365cfa62f491da9f0ab2 /drivers/gpu/drm/xe/xe_reg_sr.h
parentf1a5a9bf14182ae659cb3b5331021662c1ee1d9a (diff)
downloadlinux-1011812c642c664b254986fb34264c2ee8d2bb50.tar.xz
drm/xe/reg_sr: Use a single parameter for xe_reg_sr_apply_whitelist()
All other parameters can be extracted from a single struct xe_hw_engine reference. This removes redundancy and simplifies the code. Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20230609143815.302540-2-gustavo.sousa@intel.com Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_reg_sr.h')
-rw-r--r--drivers/gpu/drm/xe/xe_reg_sr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_reg_sr.h b/drivers/gpu/drm/xe/xe_reg_sr.h
index c3001798d9e8..e3197c33afe2 100644
--- a/drivers/gpu/drm/xe/xe_reg_sr.h
+++ b/drivers/gpu/drm/xe/xe_reg_sr.h
@@ -14,6 +14,7 @@
struct xe_device;
struct xe_gt;
+struct xe_hw_engine;
struct drm_printer;
int xe_reg_sr_init(struct xe_reg_sr *sr, const char *name, struct xe_device *xe);
@@ -22,7 +23,6 @@ void xe_reg_sr_dump(struct xe_reg_sr *sr, struct drm_printer *p);
int xe_reg_sr_add(struct xe_reg_sr *sr, const struct xe_reg_sr_entry *e,
struct xe_gt *gt);
void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt);
-void xe_reg_sr_apply_whitelist(struct xe_reg_sr *sr, u32 mmio_base,
- struct xe_gt *gt);
+void xe_reg_sr_apply_whitelist(struct xe_hw_engine *hwe);
#endif