Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1942363ybt; Mon, 15 Jun 2020 13:35:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI62Yx1Jj3+TH4WIzJX3j5C2uVKdIZg9/j0V+caRM0P0W7y81S2wh8BR4jywYxkGJehtmm X-Received: by 2002:a50:e08c:: with SMTP id f12mr25338600edl.233.1592253337505; Mon, 15 Jun 2020 13:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592253337; cv=none; d=google.com; s=arc-20160816; b=WMhjYBKOobphobF3v0up753rIZzrtw6DbjSW+rxmHYDLxcJMrAq7qFy42qJvYWcCus KjcclCJ7gBATl6qtkmxkuGG5LyQy1/v3ypTWkoBOM5TPmcSlGTs38UuK2gFsVxs/Y17Z 1xOWwzI6SEtMIDsmQAuQ9SXAeaKWNOgHA/sbQOby85u1lVn4lWQxdVj92ZQB0u0nosNr lR3oLivoW4FxlxqAqpwsvqZLoM97MWE6Qmk7icvTK4RBxtxc30J/ypOlObjSabJFIOCE J+Hyq+0w/hc1f2V7wbsL5feY/KRIpP4qdk/QMC2FAuJ/ohU54k27UpwOfr9COwp4aNCr 2VIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qQ6ech9wBPThhamLApqhS/VScYm4FUzxgrfg6GWqtnU=; b=uNUiJskbUufUgBl+xjyr1tIBvaiPgcVUNy6PbD3fGjXKeFMG7k7M8capSWZXw6eFQX ezrGo79QwTSHYUsZ2DhUEy2MT0PDuCpI2Z87g4s+qFdDa0/q7xw7DYsV/yf60AcRL3wE S8qxuPfa4yxGMZEe8ICNjmN9xOx0imrX5kgr+j6JAfXgGmj9KR4f3Tk8js4u+jdeUFi0 vp/2qrB2kiFspwKsE/UGSHX6HjMyzKOAEIbu2hWU8swjGmPgKMWW/afjsC0EVEuJETf3 6fkFPbmDkTUuzEYgwI3/Gj4qBHYR/3YLZaY/OwqmfilfvBzycNFze7nCR9m62qjQFHC9 yWaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si8922496edr.597.2020.06.15.13.35.14; Mon, 15 Jun 2020 13:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731499AbgFOUb1 (ORCPT + 99 others); Mon, 15 Jun 2020 16:31:27 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:37114 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731462AbgFOUbW (ORCPT ); Mon, 15 Jun 2020 16:31:22 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id E93AA2A2CFC From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org, Collabora Kernel ML Cc: matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, laurent.pinchart@ideasonboard.com, Sam Ravnborg , Chun-Kuang Hu , Daniel Vetter , David Airlie , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RESEND PATCH v4 3/7] drm/mediatek: mtk_dsi: Rename bridge to next_bridge Date: Mon, 15 Jun 2020 22:31:04 +0200 Message-Id: <20200615203108.786083-4-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200615203108.786083-1-enric.balletbo@collabora.com> References: <20200615203108.786083-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Laurent Pinchart Acked-by: Sam Ravnborg Reviewed-by: Chun-Kuang Hu --- Changes in v4: None Changes in v3: - Replace s/bridge/next bridge/ for comment. (Laurent Pinchart) Changes in v2: None drivers/gpu/drm/mediatek/mtk_dsi.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 270bf22c98feb..208f49bf14a01 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -183,7 +183,7 @@ struct mtk_dsi { struct drm_encoder encoder; struct drm_connector conn; struct drm_panel *panel; - struct drm_bridge *bridge; + struct drm_bridge *next_bridge; struct phy *phy; void __iomem *regs; @@ -894,9 +894,10 @@ static int mtk_dsi_create_conn_enc(struct drm_device *drm, struct mtk_dsi *dsi) */ dsi->encoder.possible_crtcs = 1; - /* If there's a bridge, attach to it and let it create the connector */ - if (dsi->bridge) { - ret = drm_bridge_attach(&dsi->encoder, dsi->bridge, NULL, 0); + /* If there's a next bridge, attach to it and let it create the connector */ + if (dsi->next_bridge) { + ret = drm_bridge_attach(&dsi->encoder, dsi->next_bridge, NULL, + 0); if (ret) { DRM_ERROR("Failed to attach bridge to drm\n"); goto err_encoder_cleanup; @@ -1177,7 +1178,7 @@ static int mtk_dsi_probe(struct platform_device *pdev) } ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, - &dsi->panel, &dsi->bridge); + &dsi->panel, &dsi->next_bridge); if (ret) goto err_unregister_host; -- 2.27.0