summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2026-02-25 17:49:16 +0300
committerJani Nikula <jani.nikula@intel.com>2026-02-27 00:28:57 +0300
commit4226479f912e829ffba3993438ebc64dac90ae18 (patch)
tree0ae32099f880d6286e448ef42576f2257197bb7c /include
parenta8ea895d34f9b3069d8eab1f6814e93e276dacee (diff)
downloadlinux-4226479f912e829ffba3993438ebc64dac90ae18.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/drm/intel/display_parent_interface.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/drm/intel/display_parent_interface.h b/include/drm/intel/display_parent_interface.h
index 2af4d6e99fd0..50da825ec06c 100644
--- a/include/drm/intel/display_parent_interface.h
+++ b/include/drm/intel/display_parent_interface.h
@@ -13,8 +13,8 @@ struct drm_framebuffer;
struct drm_gem_object;
struct drm_plane_state;
struct drm_scanout_buffer;
-struct i915_address_space;
struct i915_vma;
+struct intel_dpt;
struct intel_dsb_buffer;
struct intel_hdcp_gsc_context;
struct intel_initial_plane_config;
@@ -25,10 +25,10 @@ struct ref_tracker;
/* Keep struct definitions sorted */
struct intel_display_dpt_interface {
- struct i915_address_space *(*create)(struct drm_gem_object *obj, size_t size);
- void (*destroy)(struct i915_address_space *vm);
- void (*suspend)(struct i915_address_space *vm);
- void (*resume)(struct i915_address_space *vm);
+ struct intel_dpt *(*create)(struct drm_gem_object *obj, size_t size);
+ void (*destroy)(struct intel_dpt *dpt);
+ void (*suspend)(struct intel_dpt *dpt);
+ void (*resume)(struct intel_dpt *dpt);
};
struct intel_display_dsb_interface {