drm/i915/dp: abstract training pattern selection
authorJani Nikula <jani.nikula@intel.com>
Fri, 5 Feb 2016 10:16:09 +0000 (12:16 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 8 Feb 2016 09:36:43 +0000 (11:36 +0200)
commitbf039fa9357bdd26b3f115efd8af527523212069
tree0cabde4d6c62d30bf0917313122389a4012da625
parentbfadcded516b121546a2d7bbfea1abe3ce946517
drm/i915/dp: abstract training pattern selection

Make it cleaner to add more checks in the function. No functional
changes.

Cc: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Cc: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Cc: drm-intel-fixes@lists.freedesktop.org # dependency on the next patch
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1454667370-8001-1-git-send-email-jani.nikula@intel.com
(cherry picked from commit 23a5110dc619073b57d90c36eae383f51df03aac)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_dp_link_training.c