drm/i915: add has_dsi_encoder to crtc state
authorJani Nikula <jani.nikula@intel.com>
Fri, 27 Nov 2015 10:21:46 +0000 (12:21 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 30 Nov 2015 10:54:33 +0000 (12:54 +0200)
commita65347ba6a4e07d276377a62b9b76ee64a277197
tree4cd95b6fbd1a2ecf34c400db352bd7d05ba8cf21
parent70656900ab5c33cc5aff4dd45ca42087cdeb464b
drm/i915: add has_dsi_encoder to crtc state

DSI has quite a few special cases, like DP, so add it to crtc
state. This way we can get rid of a number of intel_pipe_has_type()
checks for DSI. This isn't necessarily the prettiest way, but it's a
step towards being aligned with what's being done with other encoders.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1448619706-21293-3-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_dsi.c