drm/i915: Create a intel_encoder_find_connector helper function.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 23 Aug 2016 14:18:07 +0000 (16:18 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 24 Aug 2016 07:49:10 +0000 (09:49 +0200)
commit496b0fc370caaf4072c19ac9120bf5c58f057d59
treed6add863f9928701b1590c20ad0aee845d8c95c4
parent80c33624e4723c4e22d9917cd676067ebf652dc2
drm/i915: Create a intel_encoder_find_connector helper function.

This makes the code in intel_sanitize_encoder slightly more readable.
This was meant to be addressed in fd6bbda9c7a4, but I missed that
review comment.

Fixes: fd6bbda9c7a4 ("drm/i915: Pass crtc_state and connector_state to encoder functions")
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471961888-10771-1-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[mlankhorst: Fix unused variable reported by kbuild.]
drivers/gpu/drm/i915/intel_display.c