]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/dpt: pass opaque struct intel_dpt around instead of i915_address_space
authorJani Nikula <jani.nikula@intel.com>
Wed, 25 Feb 2026 14:49:16 +0000 (16:49 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 26 Feb 2026 21:28:57 +0000 (23:28 +0200)
commit4226479f912e829ffba3993438ebc64dac90ae18
tree0ae32099f880d6286e448ef42576f2257197bb7c
parenta8ea895d34f9b3069d8eab1f6814e93e276dacee
drm/i915/dpt: pass opaque struct intel_dpt around instead of i915_address_space

struct i915_address_space is used in an opaque fashion in the display
parent interface, but it's just one include away from being
non-opaque. And anyway the name is rather specific.

Switch to using the struct intel_dpt instead, which embeds struct
i915_address_space anyway. With the definition hidden in i915_dpt.c,
this can't be accidentally made non-opaque, and the type seems rather
more generic anyway.

We do have to add a new helper i915_dpt_to_vm(), as there's one case in
intel_fb_pin_to_dpt() that requires direct access to struct
i915_address_space. But this just underlines the point about opacity.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://patch.msgid.link/daa39178c0b0305b010564952d691f06e3cd63ca.1772030909.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dpt.c
drivers/gpu/drm/i915/display/intel_fb.c
drivers/gpu/drm/i915/display/intel_fb_pin.c
drivers/gpu/drm/i915/display/intel_parent.c
drivers/gpu/drm/i915/display/intel_parent.h
drivers/gpu/drm/i915/i915_dpt.c
drivers/gpu/drm/i915/i915_dpt.h
include/drm/intel/display_parent_interface.h