drm/fb_helper: Create wrappers for fb_sys_read/write funcs
authorArchit Taneja <architt@codeaurora.org>
Fri, 31 Jul 2015 10:51:41 +0000 (16:21 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Aug 2015 12:12:55 +0000 (14:12 +0200)
commitcbb1a82e5608fd6511940d27c231f0f4e2495b04
tree0900461fa7d219fcedfd41954f1af31018269e42
parent47074ab7951c1fcfc3ff637eb8401c3a71272057
drm/fb_helper: Create wrappers for fb_sys_read/write funcs

Some drm drivers populate their fb_ops with fb_sys_read/write fb sysfs
ops.

Create a drm_fb_helper function that wraps 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:
- Fix 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