drm/i915: Check pipe_config.has_dp_encoder instead of encoder types
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Nov 2014 13:37:38 +0000 (14:37 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Nov 2014 17:41:42 +0000 (18:41 +0100)
commit0a88818d093b4d5746d7b3af3acc2b2bddd59808
tree978df481bb5258830e983992667e472f7c47915f
parentd0737e1d5944f570d5151ae6213952058c18a903
drm/i915: Check pipe_config.has_dp_encoder instead of encoder types

More concise. Noticed while reviewing Ander's patch which touched a
lot of the pipe_has_type checks.

v2: Use new_config in one place Ander spotted.

Cc: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/i915/intel_display.c