[Intel-xe] [PATCH 2/2] drm/i915: Abstract display info away during probe
Rodrigo Vivi
rodrigo.vivi at intel.com
Mon Oct 2 16:10:04 UTC 2023
The goal is to have this function ready for Xe to use
directly. So, let's use the available macro.
Cc: Jani Nikula <jani.nikula at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
Reviewed-by: Jani Nikula <jani.nikula at intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230929205023.1202735-1-rodrigo.vivi@intel.com
(cherry picked from commit 4c7690614c8bbd6cd29b949f9084ddb294ffe284)
---
drivers/gpu/drm/i915/display/intel_display_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c
index a6a18eae7ae8..ce55b968e658 100644
--- a/drivers/gpu/drm/i915/display/intel_display_device.c
+++ b/drivers/gpu/drm/i915/display/intel_display_device.c
@@ -926,7 +926,7 @@ void intel_display_device_probe(struct drm_i915_private *i915)
else
info = probe_display(i915);
- i915->display.info.__device_info = info;
+ DISPLAY_INFO(i915) = info;
memcpy(DISPLAY_RUNTIME_INFO(i915),
&DISPLAY_INFO(i915)->__runtime_defaults,
--
2.41.0
More information about the Intel-xe
mailing list