[PATCH v2 05/11] drm/fb-cma-helper: Make struct drm_fbdev_cma public
Noralf Trønnes
noralf at tronnes.org
Fri Sep 8 15:07:24 UTC 2017
Make struct drm_fbdev_cma public so we don't have to make more wrappers
to call the drm_fb_helper fbdev wrappers.
Cc: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Signed-off-by: Noralf Trønnes <noralf at tronnes.org>
---
drivers/gpu/drm/drm_fb_cma_helper.c | 5 -----
include/drm/drm_fb_cma_helper.h | 11 +++++++----
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c b/drivers/gpu/drm/drm_fb_cma_helper.c
index f2ee883..a5dc586 100644
--- a/drivers/gpu/drm/drm_fb_cma_helper.c
+++ b/drivers/gpu/drm/drm_fb_cma_helper.c
@@ -27,11 +27,6 @@
#define DEFAULT_FBDEFIO_DELAY_MS 50
-struct drm_fbdev_cma {
- struct drm_fb_helper fb_helper;
- const struct drm_framebuffer_funcs *fb_funcs;
-};
-
/**
* DOC: framebuffer cma helper functions
*
diff --git a/include/drm/drm_fb_cma_helper.h b/include/drm/drm_fb_cma_helper.h
index a323781..1a70017 100644
--- a/include/drm/drm_fb_cma_helper.h
+++ b/include/drm/drm_fb_cma_helper.h
@@ -1,20 +1,23 @@
#ifndef __DRM_FB_CMA_HELPER_H__
#define __DRM_FB_CMA_HELPER_H__
-struct drm_fbdev_cma;
+#include <drm/drm_fb_helper.h>
+
struct drm_gem_cma_object;
-struct drm_fb_helper_surface_size;
struct drm_framebuffer_funcs;
-struct drm_fb_helper_funcs;
struct drm_framebuffer;
-struct drm_fb_helper;
struct drm_device;
struct drm_file;
struct drm_mode_fb_cmd2;
struct drm_plane;
struct drm_plane_state;
+struct drm_fbdev_cma {
+ struct drm_fb_helper fb_helper;
+ const struct drm_framebuffer_funcs *fb_funcs;
+};
+
struct drm_fbdev_cma *drm_fbdev_cma_init_with_funcs(struct drm_device *dev,
unsigned int preferred_bpp, unsigned int max_conn_count,
const struct drm_framebuffer_funcs *funcs);
--
2.7.4
More information about the dri-devel
mailing list