drm/i915/dp: cache source rates at init
authorJani Nikula <jani.nikula@intel.com>
Tue, 28 Mar 2017 14:59:04 +0000 (17:59 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 6 Apr 2017 11:33:55 +0000 (14:33 +0300)
commit55cfc580809698e952c1df36140eefb8d97ce222
tree335eb99c535687839cfc86bc80d7e78c340e263d
parent8001b7541aa7a2f0adc4941bdebf44ea969e7ed5
drm/i915/dp: cache source rates at init

We need the source rates array so often that it makes sense to set it
once at init. This reduces function calls when we need the rates, making
the code easier to follow.

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