drm/i915: s/intel_mode_from_pipe_config/intel_mode_from_crtc_timings/
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 12 Nov 2020 19:17:16 +0000 (21:17 +0200)
committerManasi Navare <manasi.d.navare@intel.com>
Fri, 13 Nov 2020 15:41:31 +0000 (07:41 -0800)
commit33574ec9c1ad911871a9ff1ac915fa532557c67c
tree5ebd99c0059c8f80150aafc43ae41d497517ae28
parent291106cbd6fa5f8daef55f2fbfa905c33ccc03a2
drm/i915: s/intel_mode_from_pipe_config/intel_mode_from_crtc_timings/

Generalize intel_mode_from_pipe_config() to work on any two
arbitrary modes. Also relocate the code for the future, and
make it static since it's not needed elsewhere.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201112191718.16683-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h