]> asedeno.scripts.mit.edu Git - linux.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)
commit4717e8bb7341a00f44da3d1814ac53c5a2a1ce75
tree1f9aa9ac5207ca313feca05e6a9ae9d754b0afec
parentc49a0d054a054cc07f9ef4982a72e55a710e87d0
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