drm/i915/gvt: always pass struct intel_display * to register macros
authorJani Nikula <jani.nikula@intel.com>
Wed, 20 Nov 2024 12:03:32 +0000 (14:03 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 16 Dec 2024 16:09:18 +0000 (18:09 +0200)
commit57442cfb459d14871628940f0608c22449a52527
treefa82ff2943e78545fa06f7904ca420a8acd9bf7a
parent618f9e122f4c91e84db21237490dfe9fcd6a0fb9
drm/i915/gvt: always pass struct intel_display * to register macros

The long term goal is to remove the __to_intel_display() generics from
display macros, such as register macros. This requires that all such
macro usage passes struct intel_display * rather than struct
drm_i915_private * to the macros.

The short term goal is to hide the struct drm_i915_private access in
intel_display_conversions.h into a function. This is problematic with
gvt, because it's a separate module, and the conversion function would
need to be exported.

Make the conversion to always passing struct intel_display * in gvt to
unblock both of the above.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/266616e14db8d9a342fd93ec9752f561149a799b.1732104170.git.jani.nikula@intel.com
drivers/gpu/drm/i915/gvt/cmd_parser.c
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/fb_decoder.c
drivers/gpu/drm/i915/gvt/handlers.c