]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cma-helper: Use the generic fbdev emulation
authorNoralf Trønnes <noralf@tronnes.org>
Tue, 3 Jul 2018 16:03:50 +0000 (18:03 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Tue, 10 Jul 2018 12:53:17 +0000 (14:53 +0200)
commitfce7f9e5989fb1754fdf3a5904c03c58cf1faf94
tree2936a2031f6a0c491ded6eb0183025e3cd214243
parent4f8abffff522ecbfe60640145c5550de42285d84
drm/cma-helper: Use the generic fbdev emulation

This switches the CMA helper drivers that use its fbdev emulation over
to the generic fbdev emulation. It's the first phase of using generic
fbdev. A later phase will use DRM client callbacks for the
lastclose/hotplug/remove callbacks.

There are currently 2 fbdev init/fini functions:
- drm_fb_cma_fbdev_init/drm_fb_cma_fbdev_fini
- drm_fbdev_cma_init/drm_fbdev_cma_fini

This is because the work on generic fbdev came up during a fbdev
refactoring and thus wasn't completed. No point in completing that
refactoring when drivers will soon move to drm_fb_helper_generic_probe().

tinydrm uses drm_fb_cma_fbdev_init_with_funcs().

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180703160354.59955-5-noralf@tronnes.org
drivers/gpu/drm/drm_fb_cma_helper.c
include/drm/drm_fb_cma_helper.h