drm/i915: Extract intel_crtc_dotclock()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 May 2022 12:33:50 +0000 (15:33 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 14 Jun 2022 10:34:33 +0000 (13:34 +0300)
commit623411c293d180ed51f1c3b5753c5acf2c2a4077
tree80728fbbb9047fcce9fb3a03c1d74bb001e5bffb
parent5c57c099f442acab13129c9e15ad2a0c31151c98
drm/i915: Extract intel_crtc_dotclock()

Extract intel_crtc_dotclock() from ddi_dotclock_get(). We'll reuse
this during state computation in order to determine the actual final
dotclcok after the DPLL computation has been done (which may not give
us the exact same port_clock that we fed in).

v2: Add the prototype

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220504123350.13235-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.h