drm/cma-helper: Remove unused fbdev code
Subsystems (2)
PATCH v3 1/1 drm/cma-helper: Remove unused fbdev code
CMA helper drivers have been converted to drm_fbdev_generic_setup() so the fbdev code can be removed.
v3: Remove CMA specific conditional in the generic fbdev client
v2: Clean up the includes some more (Laurent)
Cc Laurent Pinchart <[email protected]>
Signed-off-by Noralf Trønnes <[email protected]>
Acked-by Sam Ravnborg <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
--- drivers/gpu/drm/Kconfig | 4 - drivers/gpu/drm/drm_fb_cma_helper.c | 137 +--------------------------- drivers/gpu/drm/drm_fb_helper.c | 12 +-- include/drm/drm_fb_cma_helper.h | 22 ----- 4 files changed, 4 insertions(+), 171 deletions(-)
drivers/gpu/drm/Kconfig +0 -4
@@ -170,10 +170,6 @@ config DRM_KMS_CMA_HELPER bool depends on DRM select DRM_GEM_CMA_HELPER - select DRM_KMS_FB_HELPER - select FB_SYS_FILLRECT - select FB_SYS_COPYAREA - select FB_SYS_IMAGEBLIT help Choose this if you need the KMS CMA helper functions
drivers/gpu/drm/drm_fb_cma_helper.c +2 -135
159 lines not on this page · raw message
drivers/gpu/drm/drm_fb_helper.c +2 -10
@@ -3042,16 +3042,8 @@ static void drm_fbdev_cleanup(struct drm_fb_helper *fb_helper)static void drm_fbdev_release (struct drm_fb_helper *fb_helper) {drm_fbdev_cleanup (fb_helper); - -/* -* FIXME: -* Remove conditional when all CMA drivers have been moved over to using -* drm_fbdev_generic_setup(). -*/ -if (fb_helper->client.funcs) { -drm_client_release (&fb_helper->client); -kfree (fb_helper); - } +drm_client_release (&fb_helper->client); +kfree (fb_helper); }/*
include/drm/drm_fb_cma_helper.h +0 -22
@@ -2,31 +2,9 @@#ifndef __DRM_FB_CMA_HELPER_H__#define __DRM_FB_CMA_HELPER_H__ -struct drm_fbdev_cma ; -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 ; -int drm_fb_cma_fbdev_init (struct drm_device *dev,unsigned int preferred_bpp, -unsigned int max_conn_count); -void drm_fb_cma_fbdev_fini (struct drm_device *dev); - -struct drm_fbdev_cma *drm_fbdev_cma_init (struct drm_device *dev, -unsigned int preferred_bpp,unsigned int max_conn_count); -void drm_fbdev_cma_fini (struct drm_fbdev_cma *fbdev_cma); - -void drm_fbdev_cma_restore_mode (struct drm_fbdev_cma *fbdev_cma); -void drm_fbdev_cma_hotplug_event (struct drm_fbdev_cma *fbdev_cma); -struct drm_gem_cma_object *drm_fb_cma_get_gem_obj (struct drm_framebuffer *fb,unsigned int plane);
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Noralf Trønnes
AppliedDen 14.01.2019 13.10, skrev Noralf Trønnes:
Quoted 5 lines
CMA helper drivers have been converted to
drm_fbdev_generic_setup()so the fbdev code can be removed.v3: Remove CMA specific conditional in the generic fbdev client
Quoted 7 lines
v2: Clean up the includes some more (Laurent)
Cc Laurent Pinchart <[email protected]>Signed-off-by Noralf Trønnes <[email protected]>Acked-by Sam Ravnborg <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>---
Applied to drm-misc-next.
Noralf.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel