OSDN Git Service

drm/komeda: plane: switch to plane reset helper
authorMaxime Ripard <maxime@cerno.tech>
Mon, 21 Feb 2022 09:58:57 +0000 (10:58 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 8 Mar 2022 11:03:38 +0000 (12:03 +0100)
commit8a0982b60f5a4a66c8a28eed37769021c20d8c50
treee31e47dd1330db3653a3ed5d494ba421bcafac7d
parent8f2a3970c969d0d8d7289a4c65edcedafc16fd92
drm/komeda: plane: switch to plane reset helper

komeda_plane_reset() does the state initialisation by copying a lot of
the code found in the __drm_atomic_helper_plane_reset(). Let's switch to
that helper and reduce the boilerplate.

Cc: Brian Starkey <brian.starkey@arm.com>
Cc: "James (Qian) Wang" <james.qian.wang@arm.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Mihail Atanassov <mihail.atanassov@arm.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220221095918.18763-2-maxime@cerno.tech
drivers/gpu/drm/arm/display/komeda/komeda_plane.c