]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bridge: tc358768: Convert to atomic helpers
authorMaxime Ripard <mripard@kernel.org>
Thu, 13 Mar 2025 12:00:09 +0000 (13:00 +0100)
committerMaxime Ripard <mripard@kernel.org>
Thu, 20 Mar 2025 13:45:52 +0000 (14:45 +0100)
commit070bac234bc6e8e925f87bb5a5ab1a98b890fce8
treea2bbe8c0c05d2438de3bd6c5553e7f722e15936b
parent9c77154b71ad936227d0c407835854604c532700
drm/bridge: tc358768: Convert to atomic helpers

The tc358768 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-15-511c54a604fb@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/bridge/tc358768.c