Skip to content

Commit 68a9e11

Browse files
Enric Balletbo i SerraChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_dsi: Rename bridge to next_bridge
This is really a cosmetic change just to make a bit more readable the code after convert the driver to drm_bridge. The bridge variable name will be used by the encoder drm_bridge, and the chained bridge will be named next_bridge. Signed-off-by: Enric Balletbo i Serra <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 5ab546f commit 68a9e11

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

drivers/gpu/drm/mediatek/mtk_dsi.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ struct mtk_dsi {
183183
struct drm_encoder encoder;
184184
struct drm_connector conn;
185185
struct drm_panel *panel;
186-
struct drm_bridge *bridge;
186+
struct drm_bridge *next_bridge;
187187
struct phy *phy;
188188

189189
void __iomem *regs;
@@ -891,9 +891,10 @@ static int mtk_dsi_create_conn_enc(struct drm_device *drm, struct mtk_dsi *dsi)
891891
*/
892892
dsi->encoder.possible_crtcs = 1;
893893

894-
/* If there's a bridge, attach to it and let it create the connector */
895-
if (dsi->bridge) {
896-
ret = drm_bridge_attach(&dsi->encoder, dsi->bridge, NULL, 0);
894+
/* If there's a next bridge, attach to it and let it create the connector */
895+
if (dsi->next_bridge) {
896+
ret = drm_bridge_attach(&dsi->encoder, dsi->next_bridge, NULL,
897+
0);
897898
if (ret) {
898899
DRM_ERROR("Failed to attach bridge to drm\n");
899900
goto err_encoder_cleanup;
@@ -1174,7 +1175,7 @@ static int mtk_dsi_probe(struct platform_device *pdev)
11741175
}
11751176

11761177
ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0,
1177-
&dsi->panel, &dsi->bridge);
1178+
&dsi->panel, &dsi->next_bridge);
11781179
if (ret)
11791180
goto err_unregister_host;
11801181

0 commit comments

Comments
 (0)