Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: ddb_size is of u16 type

ddb_size is u16 so use same return type for intel_get_ddb_size
wrapper.

Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180731142445.30723-2-mahesh1.kumar@intel.com

authored by

Mahesh Kumar and committed by
Maarten Lankhorst
aaa02378 e6a59382

+6 -6
+6 -6
drivers/gpu/drm/i915/intel_pm.c
··· 3771 3771 return true; 3772 3772 } 3773 3773 3774 - static unsigned int intel_get_ddb_size(struct drm_i915_private *dev_priv, 3775 - const struct intel_crtc_state *cstate, 3776 - const unsigned int total_data_rate, 3777 - const int num_active, 3778 - struct skl_ddb_allocation *ddb) 3774 + static u16 intel_get_ddb_size(struct drm_i915_private *dev_priv, 3775 + const struct intel_crtc_state *cstate, 3776 + const unsigned int total_data_rate, 3777 + const int num_active, 3778 + struct skl_ddb_allocation *ddb) 3779 3779 { 3780 3780 const struct drm_display_mode *adjusted_mode; 3781 3781 u64 total_data_bw; ··· 3814 3814 struct intel_atomic_state *intel_state = to_intel_atomic_state(state); 3815 3815 struct drm_i915_private *dev_priv = to_i915(dev); 3816 3816 struct drm_crtc *for_crtc = cstate->base.crtc; 3817 - unsigned int pipe_size, ddb_size; 3817 + u16 pipe_size, ddb_size; 3818 3818 int nth_active_pipe; 3819 3819 3820 3820 if (WARN_ON(!state) || !cstate->base.active) {