drm/crtc-helper: Add a drm_crtc_helper_atomic_check() helper
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 11 Oct 2022 16:51:36 +0000 (18:51 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Thu, 13 Oct 2022 07:17:05 +0000 (09:17 +0200)
commit7fed7fa340691ef4b78f5f3aebde44715128d868
tree8eb72a4371ad60119a5414fef1babf485efecb3f
parent6c3d9cf400dc085de0bde33dde73d47c71b7b2df
drm/crtc-helper: Add a drm_crtc_helper_atomic_check() helper

Provides a default CRTC state check handler for CRTCs that only have one
primary plane attached.

There are some drivers that duplicate this logic in their helpers, such as
simpledrm and ssd130x. Factor out this common code into a CRTC helper and
make drivers use it.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221011165136.469750-5-javierm@redhat.com
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/drm_plane_helper.c
drivers/gpu/drm/solomon/ssd130x.c
drivers/gpu/drm/tiny/simpledrm.c
include/drm/drm_crtc_helper.h