drm/i915: stop using is_pch_edp() in intel_dp_init_connector()
authorImre Deak <imre.deak@intel.com>
Wed, 8 May 2013 10:14:05 +0000 (13:14 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 May 2013 19:56:40 +0000 (21:56 +0200)
commitf7d24902e197824eee717e4c3f406eb8623e67e0
tree8f02b3da219abf3e218701ba61c01b7252f076f0
parent2de6905f0a30c8fbe293e1e3ecdb766bbf5f7760
drm/i915: stop using is_pch_edp() in intel_dp_init_connector()

is_pch_edp() will be removed in a follow-up patch, so replace it
with a check for the port and VBT info (for port-D eDP).

Also make things a bit clearer by using a switch on the ports.

v2:
- make the comment about not setting the conder type for DP clearer
  (Ville)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c