diff options
author | Imre Deak <imre.deak@intel.com> | 2013-05-08 06:14:02 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-10 15:56:38 -0400 |
commit | 9ff8c9bac2d78634f34d9b6e43e04bf316a7f456 (patch) | |
tree | c8a8e898f4910e096935b8f24b2bdcebbe29e7bc /drivers/gpu/drm/i915/intel_drv.h | |
parent | 590e4df8c82e6c2707ae12ba6672ab6fb9cd4b89 (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.h | 12 |
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 | ||
623 | static 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 | |||
630 | static inline struct intel_digital_port * | 623 | static inline struct intel_digital_port * |
631 | enc_to_dig_port(struct drm_encoder *encoder) | 624 | enc_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 | ||
629 | static inline struct intel_dp *enc_to_intel_dp(struct drm_encoder *encoder) | ||
630 | { | ||
631 | return &enc_to_dig_port(encoder)->dp; | ||
632 | } | ||
633 | |||
636 | static inline struct intel_digital_port * | 634 | static inline struct intel_digital_port * |
637 | dp_to_dig_port(struct intel_dp *intel_dp) | 635 | dp_to_dig_port(struct intel_dp *intel_dp) |
638 | { | 636 | { |