]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/exynos: Make exynos_drm_framebuffer_init() an internal interface
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 11 May 2026 11:54:35 +0000 (13:54 +0200)
committerInki Dae <inki.dae@samsung.com>
Thu, 21 May 2026 14:11:46 +0000 (23:11 +0900)
The only caller of exynos_drm_framebuffer_init() is the helper
exynos_user_fb_create() from the same source file. Declare the
former as static. Tidy up the header's include statements.

v2:
- clean up the includes in the header file (Chen-Yu)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fb.c
drivers/gpu/drm/exynos/exynos_drm_fb.h
drivers/gpu/drm/exynos/exynos_drm_fbdev.c

index 93f387b12126bd32c1fb765845830c892ec71681..4cff2b2b630f78543adfc83b6201d739e0dfe8a5 100644 (file)
@@ -22,6 +22,7 @@
 #include "exynos_drm_drv.h"
 #include "exynos_drm_fb.h"
 #include "exynos_drm_fbdev.h"
+#include "exynos_drm_gem.h"
 
 static int check_fb_gem_memory_type(struct drm_device *drm_dev,
                                    struct exynos_drm_gem *exynos_gem)
@@ -55,7 +56,7 @@ static const struct drm_framebuffer_funcs exynos_drm_fb_funcs = {
        .create_handle  = drm_gem_fb_create_handle,
 };
 
-struct drm_framebuffer *
+static struct drm_framebuffer *
 exynos_drm_framebuffer_init(struct drm_device *dev,
                            const struct drm_format_info *info,
                            const struct drm_mode_fb_cmd2 *mode_cmd,
index fdc6cb40cc9c97d54a19de18fad55dd6a89b6070..74300ad9bb51d8a2624f36c6dcddf2c6d27ab617 100644 (file)
 #ifndef _EXYNOS_DRM_FB_H_
 #define _EXYNOS_DRM_FB_H_
 
-#include "exynos_drm_gem.h"
+#include <linux/types.h>
 
-struct drm_framebuffer *
-exynos_drm_framebuffer_init(struct drm_device *dev,
-                           const struct drm_format_info *info,
-                           const struct drm_mode_fb_cmd2 *mode_cmd,
-                           struct exynos_drm_gem **exynos_gem,
-                           int count);
+struct drm_device;
+struct drm_framebuffer;
 
 dma_addr_t exynos_drm_fb_dma_addr(struct drm_framebuffer *fb, int index);
 
index 121c342dd14a0ee7934cc4bddfb1e1f09bc81d69..8641c9e84d4c368a6e3d377cdf0a9cb6f29f0589 100644 (file)
@@ -22,6 +22,7 @@
 #include "exynos_drm_drv.h"
 #include "exynos_drm_fb.h"
 #include "exynos_drm_fbdev.h"
+#include "exynos_drm_gem.h"
 
 #define MAX_CONNECTOR          4