]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/display: Use int type for entry_setup_frames
authorMika Kahola <mika.kahola@intel.com>
Thu, 16 Nov 2023 09:05:12 +0000 (11:05 +0200)
committerMika Kahola <mika.kahola@intel.com>
Thu, 23 Nov 2023 06:50:22 +0000 (08:50 +0200)
commit2bb7a27bd7c311c4928d6a8b5edf4b2aaa948ea8
tree84f9322b791e2459b2b671962d829d239d0162d6
parentf52ffea0745943bb6af674f30f4243b3721b7cd6
drm/i915/display: Use int type for entry_setup_frames

entry_setup_frames variable is defined as u8. However, the
function call intel_psr_entry_setup_frames() can return
negative error code. There is a type mismatch here, so let's
switch to use int here as well.

Fixes: 2b981d57e480 ("drm/i915/display: Support PSR entry VSC packet to be transmitted one frame earlier")
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231116090512.480373-1-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_psr.c