drm/i915: Polish types in fb calculations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 6 May 2024 12:57:14 +0000 (15:57 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 May 2024 16:45:45 +0000 (19:45 +0300)
commit56ac367dbf8d72274b0a77b817e583b6d6171191
tree5cee3bbd847004bcb59ff0930a5871c995da8248
parente5f827c5796f1da029fdc36bb64df0f01c49d2d7
drm/i915: Polish types in fb calculations

Be a bit more consistent in our use of integer types in
the fb related calculatiosn. u32 we generally only use
for ggtt offsets and such, and everything else can be regular
(unsigned) ints.

There's also an overabundance of consts for local variables
in skl_check_main_surface() which is not something we generally
do. So get rid of those while at it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240506125718.26001-6-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/i9xx_plane.c
drivers/gpu/drm/i915/display/intel_fb.c
drivers/gpu/drm/i915/display/intel_fb_pin.c
drivers/gpu/drm/i915/display/skl_universal_plane.c