diff options
author | Maxime Ripard <maxime@cerno.tech> | 2022-02-21 10:59:12 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-02-25 17:57:05 +0100 |
commit | 67f0f2e4308be74a77e4b33ecfcb8581d107c73f (patch) | |
tree | 7d65412ec0e879ba9531551f46748bfd515386db /drivers/gpu/drm/sti/sti_plane.c | |
parent | drm/rcar: plane: Remove redundant zpos initialisation (diff) | |
download | linux-67f0f2e4308be74a77e4b33ecfcb8581d107c73f.tar.xz linux-67f0f2e4308be74a77e4b33ecfcb8581d107c73f.zip |
drm/sti: plane: Remove redundant zpos initialisation
The sti KMS driver will call drm_plane_create_zpos_property() with an
init value depending on the plane type.
Since the initial value wasn't carried over in the state, the driver had
to set it again in sti_plane_reset().
However, the helpers have been adjusted to set it properly at reset, so
this is not needed anymore.
Reviewed-by: Alain Volmat <alain.volmat@foss.st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@foss.st.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220221095918.18763-17-maxime@cerno.tech
Diffstat (limited to 'drivers/gpu/drm/sti/sti_plane.c')
-rw-r--r-- | drivers/gpu/drm/sti/sti_plane.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/sti/sti_plane.c b/drivers/gpu/drm/sti/sti_plane.c index 3da4a46df2f2..173409cdb99e 100644 --- a/drivers/gpu/drm/sti/sti_plane.c +++ b/drivers/gpu/drm/sti/sti_plane.c @@ -112,12 +112,6 @@ static int sti_plane_get_default_zpos(enum drm_plane_type type) return 0; } -void sti_plane_reset(struct drm_plane *plane) -{ - drm_atomic_helper_plane_reset(plane); - plane->state->zpos = sti_plane_get_default_zpos(plane->type); -} - static void sti_plane_attach_zorder_property(struct drm_plane *drm_plane, enum drm_plane_type type) { |