drm/simple-kms: Add plane-state helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 11:55:32 +0000 (12:55 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 11:59:59 +0000 (12:59 +0100)
commit40f302adbd3930bf60258c79506a69748624f6b5
tree184ea4df909c1e341509dfc40bcac54d04a4bbfe
parent1d048afe7e52462d6b2a31dd6ee09c4475f39b4b
drm/simple-kms: Add plane-state helpers

Just like regular plane-state helpers, drivers can use these new
callbacks to create and destroy private plane state.

v2:
* make duplicate_state interface compatible with
  struct drm_plane_funcs

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210208115538.6430-2-tzimmermann@suse.de
drivers/gpu/drm/drm_simple_kms_helper.c
include/drm/drm_simple_kms_helper.h