]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove duplicated bxt/cnl/icl .modeset_calc_cdclk() funcs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Sep 2019 13:31:29 +0000 (16:31 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Sep 2019 09:42:39 +0000 (10:42 +0100)
commit73ab3a25b9547bfbd8360d511c203db8d70297c7
treea45aba83f8543ef2216d303c2b730b75622d9664
parentaf4b6edf433d59ee2da3e0aa2db7e681ea43dda1
drm/i915: Remove duplicated bxt/cnl/icl .modeset_calc_cdclk() funcs

Reuse the same .modeset_calc_cdclk() function for all bxt+.

The only difference in between the cnl/icl and the bxt variants
is the call to cnl_compute_min_voltage_level(). We can do that call
just fine on older platforms since they leave min_voltage_level[]
zeroed. Let's rename the function to bxt_compute_min_voltage_level()
just so it stays consistent with the rest of the naming scheme.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190911133129.27466-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_cdclk.c