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

Add an alternative to drm_encoder_init() that allocates and initializes
an 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_encoder.c
include/drm/drm_encoder.h