drm/i915/dp: Move initialization of hpd_pin to a new function
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 3 Feb 2017 14:03:14 +0000 (16:03 +0200)
committerAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 9 Feb 2017 08:20:11 +0000 (10:20 +0200)
commitb71953a16da6fd2df2cb73824064f885e9a582d0
tree7db17e8464a76f5c323d6b315188971402570924
parentca4c38909fabb1bf18e2cb805569c9559d7a56dc
drm/i915/dp: Move initialization of hpd_pin to a new function

This shaves a few lines from intel_dp_init_connector() and will serve as
a good place to add other port specific information in a follow up
patch.

While at it, convert BUG() to MISSING_CASE() in the default case.

v2: s/BUG/MISSING_CASE. (Chris)
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170203140316.20792-2-ander.conselvan.de.oliveira@intel.com
drivers/gpu/drm/i915/intel_dp.c