]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cma-helper: simplify setup for drivers with ->dirty callbacks
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Dec 2016 20:48:31 +0000 (21:48 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 30 Dec 2016 16:53:49 +0000 (17:53 +0100)
commit573c69e0fd2dc0650ae557c4e2600516a93070b2
tree64f3589aa386d44df1e62381c6c49c146680e182
parent628bdb3c70fee72fbce12565ae53cceb086ae87b
drm/cma-helper: simplify setup for drivers with ->dirty callbacks

If we store the fb funcs pointer, we can remove a bit of boilerplate.
Also remove the _fbdev_ in the example code, since the fb_funcs->dirty
callback has nothing to do with fbdev. It's a KMS feature, only
used by the fbdev deferred_io support to implement flushing/upload.

Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[danvet: Move the misplaced kerneldoc change from a later patch to
this one here.]
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1483044517-5770-11-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_fb_cma_helper.c
include/drm/drm_fb_cma_helper.h