drm/simple-kms: Support custom CRTC state
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 14 Jul 2021 14:22:38 +0000 (16:22 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sun, 8 Aug 2021 18:14:08 +0000 (20:14 +0200)
commit38c5af44a75ac1c76da8f8eec578670ff65471c0
tree03006f056787cd74a6c2881d8885cc4ab80fe70e
parent2545ac960364d0395802a27374b46f13827b4cf5
drm/simple-kms: Support custom CRTC state

Simple KMS helpers already support custom state for planes. Extend the
helpers to support custom CRTC state as well. Drivers can set the reset,
duplicate and destroy callbacks for the display pipeline's CRTC state
and inherit from struct drm_crtc_state by embedding an instance.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210714142240.21979-12-tzimmermann@suse.de
drivers/gpu/drm/drm_simple_kms_helper.c
include/drm/drm_simple_kms_helper.h