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

Add an alternative to drm_universal_plane_init() that allocates
and initializes a plane and registers drm_plane_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_plane.c
include/drm/drm_plane.h