drm/i915/dp: use known correct array size in rate_to_index
authorJani Nikula <jani.nikula@intel.com>
Tue, 28 Mar 2017 14:59:01 +0000 (17:59 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 6 Apr 2017 11:32:53 +0000 (14:32 +0300)
commit3194102439f6acb0b43f36cc909c04adf3ad97e3
tree8da7f9eaf820a79b95b6ac1e0cdac447e06b4ae0
parentfd08923384385400101c71ac0d21d37d6b23b00d
drm/i915/dp: use known correct array size in rate_to_index

I can't think of a real world bug this could cause now, but this will be
required in follow-up work. While at it, change the parameter order to
be slightly more sensible.

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/ff5b08f45a72c2247f5326b080027e2f5d8cc4ee.1490712890.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c