OSDN Git Service

drm: Remove drm_modeset_(un)lock_crtc
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Apr 2017 08:32:51 +0000 (10:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Apr 2017 07:26:07 +0000 (09:26 +0200)
commitb95ff0319a829d5e707d64a3994c75f012f6b6ec
tree84cbb607f6e7806595ed5d413bf7aa475ed5b566
parent5f27502655f657989dac0622ecf70b9e173e90f8
drm: Remove drm_modeset_(un)lock_crtc

The last user, the cursor ioctl, can just open-code this too. We
simply have to move the acquire ctx dance from the universal function
up into the top-level ioctl handler.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170403083304.9083-3-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_crtc_internal.h
drivers/gpu/drm/drm_modeset_lock.c
drivers/gpu/drm/drm_plane.c
include/drm/drm_modeset_lock.h