drm/i915: Remove useless rate_to_index() usage
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 Jul 2016 14:50:45 +0000 (17:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 4 Aug 2016 12:58:15 +0000 (15:58 +0300)
commit1354f734c5f3e9f08f97d22aff97612ee7ec9d3e
tree4aa0c6676144a4205556d4af04a637b195891818
parentc4e3170a0cdeec5ba9749a49a757b7ea722829d6
drm/i915: Remove useless rate_to_index() usage

No need to iterate the rates array in intel_dp_max_link_rate(). We know
the max rate will be the last entry, and we already know the size.

Cc: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Cc: Jim Bride <jim.bride@linux.intel.com>
Cc: Manasi D Navare <manasi.d.navare@intel.com>
Cc: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1469717448-4297-10-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c