Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3658301ybz; Mon, 4 May 2020 07:19:19 -0700 (PDT) X-Google-Smtp-Source: APiQypL2vuioeewZfKSIVoV7CzVGXynrCtadHpveFhWRAS0Sf3tV0Wfs1LFGYT5YF2Eb/fsCztPh X-Received: by 2002:a17:906:a38f:: with SMTP id k15mr15486173ejz.181.1588601959363; Mon, 04 May 2020 07:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588601959; cv=none; d=google.com; s=arc-20160816; b=Of1pnQdJQZKTvm7Wl8YN2Nr8Q5vJyngQCPeP2HyM14iGF4ATNnCJIWpDIQx1ghYvGV UdfGTHp7vtTDlx17hDt8sNad1k1lw5ey1269x6F66gyiJajpiawyNZJ7D7X+Sw5egsEQ eyE+yL7YTMRIQZTSzYc8C5y6M2BZGYHNeU+PovT4dwZkPiQ7YONxb2YiV8leBdmIOh8O X8ZWGD2X+ojlJX/Iv2lOyrZVoVxDt4bgk5sXXYjcUGyYMsqFgC1DpdK1eo3k0ucaLXVA JKWXd2+EwUVrP2a8eMhqFOSUEx2LV4j7x/MWeZMgXZ1c1vN1xEtMH0sK/QNjjd7zNeex n80Q== 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=rQhPLO8rd/9yun7f0CnyKrjEstWXfn6eDdU7CFylzIA=; b=LTm23ASbA/L8L+hE6pDsv913BgzX58HSp5pEIn3sbUAw/OWVOdHSF4KnK7iInb8TTg UneI/2uCeDWSACMw09HLwPH1bpdrK9t82Tm8lfJdH8Vb8FOxh2WAuDBs1h27LT009fY7 1x33nHQdgp1no8DBDFdc6yDicysSbjrlNvI8cp8cB9EadNXmcD9hlfHOV7bfnRR0CpAL g4/Gb7vFSVG7kuw8ZsCwlTqeaVSKQ03MQWn+s8uk+vamtUByJ0594juHy6lTz75mq8yX 09FqJ7TkpwftJeKeEWjJ94CkblDaTdLfbJmWchS/EfyL0Hg2eEIFRKsP6Z25ea3h9ahd YEkg== 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 d23si6940419edn.363.2020.05.04.07.18.55; Mon, 04 May 2020 07:19:19 -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 S1729097AbgEDOOU (ORCPT + 99 others); Mon, 4 May 2020 10:14:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbgEDOOS (ORCPT ); Mon, 4 May 2020 10:14:18 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD04BC061A0E for ; Mon, 4 May 2020 07:14:17 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 60E892A131C 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 1/3] drm/mediatek: mtk_dpi: Rename bridge to next_bridge Date: Mon, 4 May 2020 16:14:06 +0200 Message-Id: <20200504141408.60877-2-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200504141408.60877-1-enric.balletbo@collabora.com> References: <20200504141408.60877-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_dpi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 7fbfa95bab09..7112125dc3d1 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -61,7 +61,7 @@ enum mtk_dpi_out_color_format { struct mtk_dpi { struct mtk_ddp_comp ddp_comp; struct drm_encoder encoder; - struct drm_bridge *bridge; + struct drm_bridge *next_bridge; void __iomem *regs; struct device *dev; struct clk *engine_clk; @@ -607,7 +607,7 @@ static int mtk_dpi_bind(struct device *dev, struct device *master, void *data) /* Currently DPI0 is fixed to be driven by OVL1 */ dpi->encoder.possible_crtcs = BIT(1); - ret = drm_bridge_attach(&dpi->encoder, dpi->bridge, NULL, 0); + ret = drm_bridge_attach(&dpi->encoder, dpi->next_bridge, NULL, 0); if (ret) { dev_err(dev, "Failed to attach bridge: %d\n", ret); goto err_cleanup; @@ -747,11 +747,11 @@ static int mtk_dpi_probe(struct platform_device *pdev) } ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, - NULL, &dpi->bridge); + NULL, &dpi->next_bridge); if (ret) return ret; - dev_info(dev, "Found bridge node: %pOF\n", dpi->bridge->of_node); + dev_info(dev, "Found bridge node: %pOF\n", dpi->next_bridge->of_node); comp_id = mtk_ddp_comp_get_id(dev->of_node, MTK_DPI); if (comp_id < 0) { -- 2.26.2