]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Constify 'fb' in during pinning
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 6 May 2024 12:57:15 +0000 (15:57 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 May 2024 16:22:08 +0000 (19:22 +0300)
commit67f5728a895454108383d46e14ccecf8db117ea3
tree3f3835f8fbfc68bcfa56db76f111f76fcacb223d
parent56c12ec72ae8bd90cce1ea59dba2b93f986606be
drm/i915: Constify 'fb' in during pinning

Make the 'fb' pointers const in the pinning code. We never
want to mutate these. Also nuke a few aliasing fb vs. intel_fb
cases by just using the more specific type everywhere in the
same function.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240506125718.26001-7-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/i915/display/intel_fb_pin.c
drivers/gpu/drm/i915/display/intel_fb_pin.h
drivers/gpu/drm/xe/display/xe_fb_pin.c