diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2023-11-15 15:15:23 +0100 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:44:32 -0500 |
commit | 3d78923bd07ad99a33b06eaa69194b35ac1637f1 (patch) | |
tree | b10ea7e9fb680482ddb2855f6404998b8ac6f1ed /drivers/gpu/drm/xe/xe_guc_debugfs.c | |
parent | 216d62bb241a73b43dc89f67cdb60304f032956c (diff) |
drm/xe/guc: Promote guc_to_gt/xe helpers to .h
Duplicating these helpers in almost every .c file is a bad idea.
Define them as inlines in .h file to allow proper reuse.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_guc_debugfs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_debugfs.c b/drivers/gpu/drm/xe/xe_guc_debugfs.c index 167eb5593e03..ffd7d53bcc42 100644 --- a/drivers/gpu/drm/xe/xe_guc_debugfs.c +++ b/drivers/gpu/drm/xe/xe_guc_debugfs.c @@ -15,18 +15,6 @@ #include "xe_guc_log.h" #include "xe_macros.h" -static struct xe_gt * -guc_to_gt(struct xe_guc *guc) -{ - return container_of(guc, struct xe_gt, uc.guc); -} - -static struct xe_device * -guc_to_xe(struct xe_guc *guc) -{ - return gt_to_xe(guc_to_gt(guc)); -} - static struct xe_guc *node_to_guc(struct drm_info_node *node) { return node->info_ent->data; |