OSDN Git Service

drm/vc4: kms: Add functions to create the state objects
authorMaxime Ripard <maxime@cerno.tech>
Thu, 29 Oct 2020 19:01:04 +0000 (20:01 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 2 Nov 2020 11:23:12 +0000 (12:23 +0100)
commitdcda7c28bff2662a44c0adaf87c08031bebeb7d8
treeb356b5102107396d4cdd45ee8ad4b6faa155db9c
parent84d7d4720c21320c0e4f9369d6a82fc112b63d8c
drm/vc4: kms: Add functions to create the state objects

In order to make the vc4_kms_load code and error path a bit easier to
read and extend, add functions to create state objects, and use managed
actions to cleanup if needed.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20201029190104.2181730-6-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_kms.c