]> www.infradead.org Git - nvme.git/commitdiff
drm/i915/cdclk: Squash waveform is 16 bits
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 7 Feb 2024 01:33:32 +0000 (03:33 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 16 Feb 2024 15:10:53 +0000 (17:10 +0200)
Have cdclk_squash_waveform() return a u16 since that's
how many bits we have in the waveform. We alreday use
u16 everywhere else.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240207013334.29606-3-ville.syrjala@linux.intel.com
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
drivers/gpu/drm/i915/display/intel_cdclk.c

index d79485e17ed1baa91e98300bac91af55489104d9..a0013e37d53cbe8bc32be1a2c59602c611bc2a1e 100644 (file)
@@ -1778,7 +1778,7 @@ static u32 bxt_cdclk_cd2x_div_sel(struct drm_i915_private *dev_priv,
        }
 }
 
-static u32 cdclk_squash_waveform(struct drm_i915_private *dev_priv,
+static u16 cdclk_squash_waveform(struct drm_i915_private *dev_priv,
                                 int cdclk)
 {
        const struct intel_cdclk_vals *table = dev_priv->display.cdclk.table;