drm/fb_helper: Create wrappers for blit, copyarea and fillrect funcs
authorArchit Taneja <architt@codeaurora.org>
Fri, 31 Jul 2015 10:51:42 +0000 (16:21 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Aug 2015 12:12:55 +0000 (14:12 +0200)
commit742547b73d27e7bce2d0dd0f1b95692436f30950
tree7fa96b7714c433d2e786c9ddaaee7a78cd1ad769
parentcbb1a82e5608fd6511940d27c231f0f4e2495b04
drm/fb_helper: Create wrappers for blit, copyarea and fillrect funcs

drm drivers that emulate fbdev populate their fb_fillrect, fb_copyarea
and fb_imageblit fb_ops with the help of cfb_* or sys_* fbdev core
helper functions.

Create drm_fb_helper functions that wrap around these calls.

This is part of an effort to prevent drm drivers from calling fbdev
functions directly, in order to make fbdev emulation a top level drm
option.

v3:
- Fixed kerneldoc errors

v2:
- Added kerneldocs
- Follow the drm way of aligning of arguments in func definitions
- Remove unnecessary checks for non NULL fb_info

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h