drm/xe/display: Add macro to get i915 device from xe_bo

Add helper macro to kill couple of #ifdefs

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
Jouni Högander
2023-09-12 09:47:01 +03:00
committed by Rodrigo Vivi
parent 9aab7851ff
commit 1be5ff7f82

View File

@@ -78,4 +78,7 @@ struct xe_bo {
bool created;
};
#define intel_bo_to_drm_bo(bo) (&(bo)->ttm.base)
#define intel_bo_to_i915(bo) to_i915(intel_bo_to_drm_bo(bo)->dev)
#endif