drm/i915/dp: Move max. vswing check to it's own function
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Wed, 7 Sep 2016 18:28:00 +0000 (11:28 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 9 Sep 2016 21:53:18 +0000 (14:53 -0700)
commit7bfaddf057f3ae774fa355cb7d87324ca67add94
tree7e8d8d834bb557152ab3e1e4ed99fbefe5460cd0
parentf169660ed4e57a03e6f6ed07fe192dbcb7687a0d
drm/i915/dp: Move max. vswing check to it's own function

Wrap the max. vswing check in a separate function.
This makes the clock recovery phase of DP link training cleaner

v3:
Fixed the paranthesis warning (Mika Kahola)
v2:
Fixed the Compiler warning (Mika Kahola)

Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_dp_link_training.c