]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/fb: Nuke intel_tile_row_size()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Apr 2026 15:50:42 +0000 (18:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Apr 2026 10:26:31 +0000 (13:26 +0300)
intel_tile_row_size() is unused. Nuke it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260407155053.32156-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_fb.c
drivers/gpu/drm/i915/display/intel_fb.h

index 5768619f840f41dae1cb943a0b8508b808550b5e..83392c1a1ebe6c4bba2b63c167d486a0040303d3 100644 (file)
@@ -876,15 +876,6 @@ static void intel_tile_block_dims(const struct drm_framebuffer *fb, int color_pl
                *tile_height = 1;
 }
 
-unsigned int intel_tile_row_size(const struct drm_framebuffer *fb, int color_plane)
-{
-       unsigned int tile_width, tile_height;
-
-       intel_tile_dims(fb, color_plane, &tile_width, &tile_height);
-
-       return fb->pitches[color_plane] * tile_height;
-}
-
 unsigned int
 intel_fb_align_height(const struct drm_framebuffer *fb,
                      int color_plane, unsigned int height)
index 22514d5f2bb66e604adff1f4e730203509adc8ce..fb1ec2a1e905cb152308c9554b3b8d4ff887b39d 100644 (file)
@@ -62,7 +62,6 @@ int skl_main_to_aux_plane(const struct drm_framebuffer *fb, int main_plane);
 unsigned int intel_tile_size(struct intel_display *display);
 unsigned int intel_tile_width_bytes(const struct drm_framebuffer *fb, int color_plane);
 unsigned int intel_tile_height(const struct drm_framebuffer *fb, int color_plane);
-unsigned int intel_tile_row_size(const struct drm_framebuffer *fb, int color_plane);
 unsigned int intel_fb_align_height(const struct drm_framebuffer *fb,
                                   int color_plane, unsigned int height);