summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_encoder.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2025-07-29 14:17:08 +0300
committerJani Nikula <jani.nikula@intel.com>2025-08-12 21:23:38 +0300
commitb4892169025f6753e4e1a72a94ab43fbc7dd4e47 (patch)
tree05f9c5fb097f1328f50196995cce162b13206bfb /drivers/gpu/drm/i915/display/intel_encoder.h
parent6cb52cba474b2bec1a3018d3dbf75292059a29a1 (diff)
drm/i915/display: add intel_dig_port_alloc()
Add a common allocator function for struct intel_digital_port, with some member default initialization to deduplicate them from everywhere else. This is similar to intel_connector_alloc(). At least for now, place this in intel_encoder.[ch]. We don't have a dedicated file for dig port stuff, and there wouldn't be much to add there anyway. A digital port is a sort of subclass of encoder, so the location isn't far off the mark. Reviewed-by: Dibin Moolakadan Subrahmanian <dibin.moolakadan.subrahmanian@intel.com> Link: https://lore.kernel.org/r/4d2da1a40698f85014140f586405b19795437e81.1753787803.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_encoder.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_encoder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_encoder.h b/drivers/gpu/drm/i915/display/intel_encoder.h
index e1d3aeab7c00..ace0fe1a8f27 100644
--- a/drivers/gpu/drm/i915/display/intel_encoder.h
+++ b/drivers/gpu/drm/i915/display/intel_encoder.h
@@ -6,6 +6,7 @@
#ifndef __INTEL_ENCODER_H__
#define __INTEL_ENCODER_H__
+struct intel_digital_port;
struct intel_display;
struct intel_encoder;
@@ -20,4 +21,6 @@ void intel_encoder_shutdown_all(struct intel_display *display);
void intel_encoder_block_all_hpds(struct intel_display *display);
void intel_encoder_unblock_all_hpds(struct intel_display *display);
+struct intel_digital_port *intel_dig_port_alloc(void);
+
#endif /* __INTEL_ENCODER_H__ */