OSDN Git Service

drm/omap: plane: Remove redundant color encoding and range initialisation
authorMaxime Ripard <maxime@cerno.tech>
Mon, 21 Feb 2022 09:59:18 +0000 (10:59 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 25 Feb 2022 16:57:23 +0000 (17:57 +0100)
commit8c2d9bf5cbec8c81f1c2ada0c6864b60f5738e31
tree3fb67cbbaf919b889d1467491efb786033ccbf3f
parent9a48ab11714c955456fefdd4ab532d324fbef563
drm/omap: plane: Remove redundant color encoding and range initialisation

The omap KMS driver will call drm_plane_create_color_properties() with
a default encoding and range values of BT601 and Full Range,
respectively.

Since the initial value wasn't carried over in the state, the driver had
to set it again in omap_plane_reset(). However, the helpers have been
adjusted to set it properly at reset, so this is not needed anymore.

Reviewed-by: Tomi Valkeinen <tomba@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220221095918.18763-23-maxime@cerno.tech
drivers/gpu/drm/omapdrm/omap_plane.c