]> git.baikalelectronics.ru Git - kernel.git/commit
drm/simple_kms_helper: add drmm_simple_encoder_alloc()
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 10 Dec 2020 15:38:29 +0000 (16:38 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 4 Jan 2021 11:59:33 +0000 (12:59 +0100)
commitb538d8c3244267e5a16453688c896e8ff9e7760b
tree7c027233a646078e8dddd04983fc82a6cfc8f99c
parentc78d9a8784043dad047ee49c5dc6d7d6bed9e2fb
drm/simple_kms_helper: add drmm_simple_encoder_alloc()

Add an alternative to drm_simple_encoder_init() that allocates and
initializes a simple encoder and registers drm_encoder_cleanup() with
drmm_add_action_or_reset().

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_simple_kms_helper.c
include/drm/drm_simple_kms_helper.h