drm: Add drm_atomic_set_mode_for_crtc
authorDaniel Stone <daniels@collabora.com>
Tue, 26 May 2015 13:36:48 +0000 (14:36 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 May 2015 13:50:34 +0000 (15:50 +0200)
commit819364da20fd914aba2fd03e95ee0467286752f5
tree4e3cf5c56d47401a57e30389ae88cc82777770b1
parentbbe16a40e23a65626904aa22fbfc3240a65d21d1
drm: Add drm_atomic_set_mode_for_crtc

Add a new helper, to be used later for blob property management, that
sets the mode for a CRTC state, as well as updating the CRTC enable/active
state at the same time.

v2: Do not touch active/mode_changed in CRTC state. Document return
    value. Remove stray drm_atomic_set_mode_prop_for_crtc declaration.

v3: Remove i915 changes, and leave it directly bashing crtc_state->mode
    for the meantime.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Tested-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_crtc_helper.c
include/drm/drm_atomic.h