Commit e15fd1be authored by Jani Nikula's avatar Jani Nikula

drm/i915/mst: un-inline intel_dp_mst_encoder_active_links()

Avoid including the intel_drv.h mega header from other header files to
make further header cleanup easier.
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ae8f7a9514a9e952e1e0dba411aeb42293d1e183.1565085691.git.jani.nikula@intel.com
parent 366b6200
...@@ -631,6 +631,12 @@ intel_dp_create_fake_mst_encoders(struct intel_digital_port *intel_dig_port) ...@@ -631,6 +631,12 @@ intel_dp_create_fake_mst_encoders(struct intel_digital_port *intel_dig_port)
return true; return true;
} }
int
intel_dp_mst_encoder_active_links(struct intel_digital_port *intel_dig_port)
{
return intel_dig_port->dp.active_mst_links;
}
int int
intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_base_id) intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_base_id)
{ {
......
...@@ -6,15 +6,10 @@ ...@@ -6,15 +6,10 @@
#ifndef __INTEL_DP_MST_H__ #ifndef __INTEL_DP_MST_H__
#define __INTEL_DP_MST_H__ #define __INTEL_DP_MST_H__
#include "intel_drv.h" struct intel_digital_port;
int intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_id); int intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_id);
void intel_dp_mst_encoder_cleanup(struct intel_digital_port *intel_dig_port); void intel_dp_mst_encoder_cleanup(struct intel_digital_port *intel_dig_port);
static inline int int intel_dp_mst_encoder_active_links(struct intel_digital_port *intel_dig_port);
intel_dp_mst_encoder_active_links(struct intel_digital_port *intel_dig_port)
{
return intel_dig_port->dp.active_mst_links;
}
#endif /* __INTEL_DP_MST_H__ */ #endif /* __INTEL_DP_MST_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment