]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/tegra: Make tegra_fb_alloc() an internal interface
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 21 Apr 2026 07:29:09 +0000 (09:29 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 28 May 2026 15:19:29 +0000 (17:19 +0200)
Fbdev framebuffer allocation now goes through the regular ioctl call
chain. This makes tegra_fb_alloc() an internal helper function. Declare
it as static.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260421073646.144712-6-tzimmermann@suse.de
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/fb.c

index ae68b03d8483b45b86a73cf02657dd954141b591..bc720ae8d95e160acc2941802516b8e27c276a31 100644 (file)
@@ -184,11 +184,6 @@ struct tegra_bo *tegra_fb_get_plane(struct drm_framebuffer *framebuffer,
 bool tegra_fb_is_bottom_up(struct drm_framebuffer *framebuffer);
 int tegra_fb_get_tiling(struct drm_framebuffer *framebuffer,
                        struct tegra_bo_tiling *tiling);
-struct drm_framebuffer *tegra_fb_alloc(struct drm_device *drm,
-                                      const struct drm_format_info *info,
-                                      const struct drm_mode_fb_cmd2 *mode_cmd,
-                                      struct tegra_bo **planes,
-                                      unsigned int num_planes);
 struct drm_framebuffer *tegra_fb_create(struct drm_device *drm,
                                        struct drm_file *file,
                                        const struct drm_format_info *info,
index 1e4803d355ddbe212a2dd58f761141505f2762db..0a7cb9e462ff68580e021ad3a4902ecf586dbdff 100644 (file)
@@ -102,6 +102,7 @@ static const struct drm_framebuffer_funcs tegra_fb_funcs = {
        .create_handle = drm_gem_fb_create_handle,
 };
 
+static
 struct drm_framebuffer *tegra_fb_alloc(struct drm_device *drm,
                                       const struct drm_format_info *info,
                                       const struct drm_mode_fb_cmd2 *mode_cmd,