OSDN Git Service

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)
commit59abba48c4299481053411f6a4de5df67b2c998f
tree7c027233a646078e8dddd04983fc82a6cfc8f99c
parentca5092d04d86986c03b6e0042e2f1cd119c50f5d
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