mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-13 15:32:15 -04:00
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:
committed by
Rodrigo Vivi
parent
9aab7851ff
commit
1be5ff7f82
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user