Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp681820ybz; Fri, 17 Apr 2020 08:11:18 -0700 (PDT) X-Google-Smtp-Source: APiQypLAOOR3WnnWD4/ntryqbZclNSF1Sqkzjp1az9m61R8Hoket3+bgceh1uYH14pTwNhF9kugS X-Received: by 2002:a17:906:4482:: with SMTP id y2mr3403641ejo.234.1587136278020; Fri, 17 Apr 2020 08:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587136278; cv=none; d=google.com; s=arc-20160816; b=HYl/jhbsgvl4HYCWqxPVus+nLx5j43DiOOHYAvqhXpU8i7+tixTVmHoTbD8i3DGcbL cCpO4YtsbsDCyZLzA8Pj1nCtobCNyASNUZqoZNBzqrtosyAgKk1V5beIBmXAfSOZjtlQ SDJtaW+STW2jUKzMTH4IZhotvn1pKtZsKEn2pdAl2feTj4EPBY28MjJZxGkPkC0Xfqit 7raE+ayLETyBzplK+mcXN70+LBef1XMRYvVwOjPb1eP+6UkafBTBwPLeqrCmJw4mdV8J MeEb+IfNondiy1GNb+in51Ie/QN+ueVZrOO+nFNm4RXk6Ib/Bk8EvkrDjtYRvvFuUuDG UZAA== 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=XS01izx96qyg4+5jgUjy/saFADEN4GZoVhqLPamdnCs=; b=oJ0SshHz6iJYq26+vrIDlYSB3i3zrbd1NO4clUuksiEXQ7iqBuADnBPit0ojweK4mn UVe9MUUpC58nVCodIqyh6ZcaGQUk607OUZ4dVg1kW4Y4UNWsVn5Wd15dFPq+IIVO+Bs+ ouvF/2jFcDXhv+V/9cVggqpPOy9pVjMnQ/EI4eaHabB8W9gk0p0u4Ap6PxdJUiBIGlWh D8nGNF5C/DUW2n7XDR+BhBKWJsbSEmp/uCryI7F7Qn7BMvMqr5i6ouj7QEwLtdI9PM6h 3q9p3yuTQTbAw1KX6xWjkZG8ozS0NI17rkXpvYz2iUZ3fjLpH/1qisMZnCpOIkOmpWZT QfGw== 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 o5si1660776edv.507.2020.04.17.08.10.53; Fri, 17 Apr 2020 08:11:17 -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 S1728703AbgDQPGd (ORCPT + 99 others); Fri, 17 Apr 2020 11:06:33 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53986 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728347AbgDQPG2 (ORCPT ); Fri, 17 Apr 2020 11:06:28 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id E5F642A2A75 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, 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 v3 3/7] drm/mediatek: mtk_dsi: Rename bridge to next_bridge Date: Fri, 17 Apr 2020 17:06:10 +0200 Message-Id: <20200417150614.2631786-4-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200417150614.2631786-1-enric.balletbo@collabora.com> References: <20200417150614.2631786-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 --- 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 cfa45d6abd74..37b8d7ffd835 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; @@ -902,9 +902,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; @@ -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