OSDN Git Service

drm: Wrap the check for atomic_commit implementation
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Thu, 22 Dec 2016 08:50:42 +0000 (00:50 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 09:44:00 +0000 (10:44 +0100)
commita743d7582db9aba0e7078d6386bdad2756309dba
treef142599c73b31d08257ee07294b4fbcf30df54e9
parentf79f26921ee12c6fc14d0df61b1eb27a5070b959
drm: Wrap the check for atomic_commit implementation

This check is useful for drivers that do not have DRIVER_ATOMIC set but
have atomic modesetting internally implemented. Wrap the check into a
function since this is used in many places and as a bonus, the function
name helps to document what the check is for.

v2:
Change return type to bool (Ville)
Move the function drm_atomic.h (Daniel)
Fixed comment marker for documentation

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
[danvet: Move back to drmP.h because include hell.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1482396643-32456-1-git-send-email-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c
include/drm/drmP.h
include/drm/drm_atomic.h