drm/i915/dp: Refactor max_vswing_tries variable
authorNathan Ciobanu <nathan.d.ciobanu@linux.intel.com>
Fri, 20 Jul 2018 21:44:13 +0000 (14:44 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 23 Jul 2018 23:00:07 +0000 (16:00 -0700)
commit102506d52922345cf17af362b94b869cffefbbe1
treee5ef8f8ed7a52849086535adfddc4bc631744e27
parentbb5ffe6fd58cd37f1cade411c4a00745ed0fbbd1
drm/i915/dp: Refactor max_vswing_tries variable

Changes the type and renames the max_vswing_tries variable
which was declared as an integer but used as a boolean
making it easy to be confused with a counter.

Changes in v2:
    - updated the title and commit message
    - left the loop exit point in place

v3: fix typo in title
v4: renamed max_vswing to max_vswing_reached (Ville)

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Marc Herbert <marc.herbert@intel.com>
Signed-off-by: Nathan Ciobanu <nathan.d.ciobanu@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180720214413.29506-2-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_dp_link_training.c