aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-05-08 06:14:02 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-05-10 15:56:38 -0400
commit9ff8c9bac2d78634f34d9b6e43e04bf316a7f456 (patch)
treec8a8e898f4910e096935b8f24b2bdcebbe29e7bc /drivers/gpu/drm/i915/intel_drv.h
parent590e4df8c82e6c2707ae12ba6672ab6fb9cd4b89 (diff)
drm/i915: use enc_to_intel_dp() instead of opencoding the same
Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 6096871c4806..b1f50b15c6f3 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -620,19 +620,17 @@ static inline struct intel_encoder *intel_attached_encoder(struct drm_connector
620 return to_intel_connector(connector)->encoder; 620 return to_intel_connector(connector)->encoder;
621} 621}
622 622
623static inline struct intel_dp *enc_to_intel_dp(struct drm_encoder *encoder)
624{
625 struct intel_digital_port *intel_dig_port =
626 container_of(encoder, struct intel_digital_port, base.base);
627 return &intel_dig_port->dp;
628}
629
630static inline struct intel_digital_port * 623static inline struct intel_digital_port *
631enc_to_dig_port(struct drm_encoder *encoder) 624enc_to_dig_port(struct drm_encoder *encoder)
632{ 625{
633 return container_of(encoder, struct intel_digital_port, base.base); 626 return container_of(encoder, struct intel_digital_port, base.base);
634} 627}
635 628
629static inline struct intel_dp *enc_to_intel_dp(struct drm_encoder *encoder)
630{
631 return &enc_to_dig_port(encoder)->dp;
632}
633
636static inline struct intel_digital_port * 634static inline struct intel_digital_port *
637dp_to_dig_port(struct intel_dp *intel_dp) 635dp_to_dig_port(struct intel_dp *intel_dp)
638{ 636{