]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/display: bridge-connector: attach the encoder to the created connector
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 23 Apr 2026 09:16:55 +0000 (11:16 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 30 Apr 2026 08:22:52 +0000 (10:22 +0200)
commitdcad6dd16e87a6dcc78ab05f64c704cec2809db9
tree8ac31ac9496fcef8544c9be9764f636f9b3d93be
parenta5640267d6d35b89ebe6418da90a952a247215a5
drm/display: bridge-connector: attach the encoder to the created connector

Currently all users of the bridge-connector must call
drm_connector_attach_encoder() immediately after a successful
drm_bridge_connector_init().

This is an unnecessary burden for users. Move the call to the end of
drm_bridge_connector_init() so all callers can be simplified.

Update documentation accordingly, rewording a bit the whole paragraph which
would otherwise become poorly readable due to the growing list of actions.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20260423-drm-bridge-connector-attach_encoder-v2-1-2ae6ca69b390@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/display/drm_bridge_connector.c