drm/i915: factor out ddi_get_encoder_port
authorImre Deak <imre.deak@intel.com>
Fri, 17 Apr 2015 16:31:21 +0000 (19:31 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 30 Apr 2015 09:23:33 +0000 (12:23 +0300)
commita1e6ad667550a9be173d0a0cfbba236d9252f837
tree7b40b993b3b9c6ed77131b66fecb161d3ef0b8d4
parent052f62f78955106a14961f0d3d34c256e896303a
drm/i915: factor out ddi_get_encoder_port

In the next patch we'll need to get at both the encoder's intel_digital_port
object - which maybe NULL for a CRT - and it's port, so factor out this
functionality.

No functional change.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_ddi.c