drm/modeset-helper: Add simple modeset suspend/resume helpers
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 6 Nov 2017 19:18:08 +0000 (20:18 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Thu, 30 Nov 2017 17:18:08 +0000 (18:18 +0100)
commitca038cfb5cfa8d48b427b916efe97e711f5a18c7
treea87d729c077cdfc1c8b426266ea43091616726f4
parentb66d0f348624101203dbec22e45c74e1c895b881
drm/modeset-helper: Add simple modeset suspend/resume helpers

Add drm_mode_config_helper_suspend/resume() which takes care of
atomic modeset suspend/resume for simple use cases.
The suspend state is stored in struct drm_mode_config.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171106191812.38927-3-noralf@tronnes.org
drivers/gpu/drm/drm_modeset_helper.c
include/drm/drm_mode_config.h
include/drm/drm_modeset_helper.h