]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/komeda: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_s...
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Jul 2025 09:07:17 +0000 (12:07 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 16 Jul 2025 17:10:46 +0000 (20:10 +0300)
Plumb the format info from .fb_create() all the way to
drm_helper_mode_fill_fb_struct() to avoid the redundant
lookup.

Cc: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250701090722.13645-15-ville.syrjala@linux.intel.com
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c

index acd8e505ebc71c4e673e6594e1b92bd29609bfa5..901f938aefe0845ace65f72b7e42a9c3c1b12b22 100644 (file)
@@ -178,7 +178,7 @@ komeda_fb_create(struct drm_device *dev, struct drm_file *file,
                return ERR_PTR(-EINVAL);
        }
 
-       drm_helper_mode_fill_fb_struct(dev, &kfb->base, NULL, mode_cmd);
+       drm_helper_mode_fill_fb_struct(dev, &kfb->base, info, mode_cmd);
 
        if (kfb->base.modifier)
                ret = komeda_fb_afbc_size_check(kfb, file, mode_cmd);