Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1026612ybb; Wed, 8 Apr 2020 14:58:14 -0700 (PDT) X-Google-Smtp-Source: APiQypLdLBb4w5/ij1JT5iuTMzd03C7MeOIxLbA9I2umn3Fo9A34WfcZeGijIXLfCM11E/TMTnIt X-Received: by 2002:a9d:23a6:: with SMTP id t35mr7997084otb.154.1586383094788; Wed, 08 Apr 2020 14:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586383094; cv=none; d=google.com; s=arc-20160816; b=IsLS4O42w4BLCoaI1ohQuVfsSQ/YUFkb1GWfpNHw86tgY6ihO7n3zIOi1zPO5dO0gN 399kOzkNocQ4ul9Hf4YOsanQdgpPPBfsOxx5Eq8RBXY49u3JWjtztN8jWnKMJ73WeY/S rd9RNMAz6wMH33B7ra6rNQD6t1RvyqAvUV+/jGj4v15oVxfQMrOKdwUlwtxQKNfkLhIc 44oh8qqOsj9K50AMJeo1Yz3vzpJ0hcyTMaiV0we37YaBBJfgzXieqW88d0FMRK+77J7V UsUqVb7cUknrh8jKL3T/AhjRxdkE2ghHeKEP2FggXWJjQNu6wEFqZE0dgi4bs92lN5NB Z2lQ== 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=csPrRSId1m6NoJ+l2+4xQr7BnUjdOaZSb4BPeJcafyE=; b=BNWdBigiMJWnWyAjM8Ru1e2AS+ynT89e0Jehh7Km9alRL+1dOvgrmEzHtgVyi6AndE eureX1fJSan71DWlLlF4yYiOoe3rDcRJO4lT8dyo1tc37ZSTB4mrHc1glusmGKl+7cQD HKp6FqLlI6l5CBS71UN5JqvETxmilD4mJDRQmNNTEVOCAKKeOjHejLhC7cIksBTt7HN2 F0TnHtMjD/nCRUaFouN3BWKcoyiL/QKdhGAWishqqWpqxSxHKEtPUhVN2jG4wrleMZwL yl4xMf4mpl/gKbdxUfNyruXEY2b7rJxnQrHBThQrtRngbDxMtyjF36j6f8RbvlLqb9qu nQtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 50si3208590otv.259.2020.04.08.14.58.01; Wed, 08 Apr 2020 14:58:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730059AbgDHVLh (ORCPT + 99 others); Wed, 8 Apr 2020 17:11:37 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57318 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729951AbgDHVLg (ORCPT ); Wed, 8 Apr 2020 17:11:36 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 97EAB297486 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, Collabora Kernel ML , matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, 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: [PATCH 3/7] drm/mediatek: mtk_dsi: Rename bridge to next_bridge Date: Wed, 8 Apr 2020 23:11:16 +0200 Message-Id: <20200408211120.1407512-4-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200408211120.1407512-1-enric.balletbo@collabora.com> References: <20200408211120.1407512-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 --- drivers/gpu/drm/mediatek/mtk_dsi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index cfa45d6abd74..44ee884cc31c 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -182,7 +182,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; @@ -903,8 +903,9 @@ 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 (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; @@ -1185,7 +1186,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.25.1