]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb-helper: add DRM_FB_HELPER_DEFAULT_OPS for fb_ops
authorStefan Christ <contact@stefanchrist.eu>
Thu, 29 Sep 2016 20:48:37 +0000 (22:48 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Oct 2016 06:23:16 +0000 (08:23 +0200)
commita1ac157ca14e4f9d8c4ff0ca543b3549a4acb0aa
tree7001b17f1318ab877a73b3bf69c79eb1f5affd1c
parent374f56c0317159362628d1f54eb84c63c0fc4dbb
drm/fb-helper: add DRM_FB_HELPER_DEFAULT_OPS for fb_ops

The define DRM_FB_HELPER_DEFAULT_OPS provides the drm_fb_helper default
implementations for functions in struct fb_ops. A drm driver can use it
like:

    static struct fb_ops drm_fbdev_cma_ops = {
        .owner          = THIS_MODULE,
        DRM_FB_HELPER_DEFAULT_OPS,
        /* driver specific implementations */
    };

Suggested-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Stefan Christ <contact@stefanchrist.eu>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1475182136-15191-2-git-send-email-contact@stefanchrist.eu
include/drm/drm_fb_helper.h