drm/bridge: tc358775: Switch to atomic commit
authorMaxime Ripard <mripard@kernel.org>
Thu, 13 Mar 2025 12:00:07 +0000 (13:00 +0100)
committerMaxime Ripard <mripard@kernel.org>
Thu, 20 Mar 2025 13:45:51 +0000 (14:45 +0100)
commitae875180318a51b2812295e8948162108f5e46ef
treecc9f477519076874cc702f6c917b2692a88b2d0f
parent68c98e227a960c567530b2c4c6765fdeab993e3b
drm/bridge: tc358775: Switch to atomic commit

The tc358775 driver follows the drm_encoder->crtc pointer that is
deprecated and shouldn't be used by atomic drivers.

Fortunately, the atomic hooks provide the drm_atomic_state and we can
access our current CRTC from that, going from the bridge to its encoder,
to its connector, and to its CRTC.

Let's convert this bridge driver to atomic so we can get rid of the
drm_encoder->crtc dereference.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250313-bridge-connector-v6-13-511c54a604fb@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/bridge/tc358775.c