]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clean up the .get_cdclk() assignment if ladder
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Feb 2017 18:32:26 +0000 (20:32 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 Feb 2017 16:07:10 +0000 (18:07 +0200)
commitd13b165e024ed71f1c8637a601206379d173049e
tree1f9aa9ac5207ca313feca05e6a9ae9d754b0afec
parent2b0e4cce4cfdbacd1486841873bd2e99dff2a5f3
drm/i915: Clean up the .get_cdclk() assignment if ladder

Let's clean up the mess we have in the if ladder that assigns the
.get_cdclk() hooks. The grouping of the platforms by the function
results in a thing that's not really legible, so let's do it the
other way around and order the if ladder by platform and duplicate
whatever assignments we need.

To further avoid confusion with the function names let's rename
them to just fixed_<freq>_get_cdclk(). The other option would
be to duplicate the functions entirely but it seems quite
pointless to do that since each one just returns a fixed value.

v2: Deal with i945gm_get_cdclk()

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170207183226.19537-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c