mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Make i915->display pointer opaque to most of core i915 driver. Lots of places now need explicit include of intel_display_core.h, or a more specific header. With this dependency broken, changes in display should cause radically less recompilation of i915. Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> Link: https://lore.kernel.org/r/b381b59acb7e4f600e0282935a68aedf77768109.1747907216.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
15 lines
343 B
C
15 lines
343 B
C
// SPDX-License-Identifier: MIT
|
|
/* Copyright © 2024 Intel Corporation */
|
|
|
|
#include "i915_drv.h"
|
|
#include "intel_display_conversion.h"
|
|
|
|
struct intel_display *__i915_to_display(struct drm_i915_private *i915)
|
|
{
|
|
return i915->display;
|
|
}
|
|
|
|
struct intel_display *__drm_to_display(struct drm_device *drm)
|
|
{
|
|
return __i915_to_display(to_i915(drm));
|
|
}
|