]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: add intel_display_conversion.c to hide stuff better
authorJani Nikula <jani.nikula@intel.com>
Wed, 20 Nov 2024 12:03:34 +0000 (14:03 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 16 Dec 2024 16:09:35 +0000 (18:09 +0200)
commitadceb416888daf0c53048d1cc5411527dcc8d24c
treedd0c4e1822b05500e25bc121ff35c3ed95d3d4b9
parent17d707260765efbf0672cdd7ba9d597a16924781
drm/i915/display: add intel_display_conversion.c to hide stuff better

The __to_intel_display() generics require the definition of struct
drm_i915_private i.e. inclusion of i915_drv.h. Add
intel_display_conversion.c with a __i915_to_display() function to do the
conversion without the intel_display_conversion.h having an implicit
dependency on i915_drv.h.

The long term goal is to remove __to_intel_display() and the
intel_display_conversion.[ch] files altoghether, and this is merely a
transitional step to make the dependencies on i915_drv.h explicit.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/39e99b765b8c1a05d001659c39686a661ac268e2.1732104170.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display_conversion.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_conversion.h
drivers/gpu/drm/xe/Makefile