]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915: Abstract display info away during probe
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 29 Sep 2023 20:50:23 +0000 (16:50 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 2 Oct 2023 16:01:42 +0000 (12:01 -0400)
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@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230929205023.1202735-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/display/intel_display_device.c

index a6a18eae7ae861d87a80b77a7ee17873d56cc7df..ce55b968e658b83c92e7ac878f2dd51d83e64cd3 100644 (file)
@@ -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,