Commit 1be5ff7f authored by Jouni Högander's avatar Jouni Högander Committed by Rodrigo Vivi

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

Add helper macro to kill couple of #ifdefs
Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 9aab7851
......@@ -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
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