drm/i915/dp: rename rate_to_index() to intel_dp_rate_index() and reuse
authorJani Nikula <jani.nikula@intel.com>
Tue, 28 Mar 2017 14:59:03 +0000 (17:59 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 6 Apr 2017 11:33:48 +0000 (14:33 +0300)
commit8001b7541aa7a2f0adc4941bdebf44ea969e7ed5
treefb83ce99fe865a2d1401cff3ea185e7e4ce12ef4
parentb5c72b207baaa33184b23a5a69603f981aaef0c1
drm/i915/dp: rename rate_to_index() to intel_dp_rate_index() and reuse

Rename the function, move it at the top, and reuse in
intel_dp_link_rate_index(). If there was a reason in the past to use
reverse search order here, there isn't now.

The names may be slightly confusing now, but intel_dp_link_rate_index()
will go away in follow-up patches.

v2: Use name intel_dp_rate_index (Dhinakaran)

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/c7b6197aaa12e368a0d024dc142fa574fd0443a7.1490712890.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c