drm: Add page_flip_target CRTC hook v2
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 8 Aug 2016 07:23:03 +0000 (16:23 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Aug 2016 18:27:51 +0000 (14:27 -0400)
commitc229bfbbd04ac112bd15331d3a06d12e4e86a45c
tree8ef5a3166d786dfe6df0a08f4087817279532fba
parent88afb9e6cd3c3266abe9632dd99c60ca0581d8dc
drm: Add page_flip_target CRTC hook v2

Mostly the same as the existing page_flip hook, but takes an additional
parameter specifying the target vertical blank period when the flip
should take effect.

v2:
* Add curly braces around else statement corresponding to an if block
  with curly braces (Alex Deucher)
* Call drm_crtc_vblank_put in the error case (Daniel Vetter)
* Clarify entry point documentation comment (Daniel Vetter)

Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h