Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1307579ybt; Thu, 9 Jul 2020 03:58:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV5zA9Ibdf/0yoZKT4EYMh3C+7Taabm236eQSOeesBOrZlpi9q/cinyH/6mio805PGTCkk X-Received: by 2002:a17:906:b143:: with SMTP id bt3mr55701155ejb.134.1594292338083; Thu, 09 Jul 2020 03:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594292338; cv=none; d=google.com; s=arc-20160816; b=mtEI/ymm9d70OC2flROZbNm2FWXSUTK7MVtIGzbhYIeAZqW+tUH6ieC4IPZh9HWZua iie4viOx5XTemzLx2aQ+j1NY8CcqW6fhC1Z+Fgk+ZHChy7lw7UtDFyM4JOOO3lQCDhkK IRkMxV6ds6jmSJgdn734IPMiXmkrHaovXjte/Vn7n4nfBemOnkSnIidGHM9huw/KGglp e+BxE5Jvb8ALa5L89yfdG9E+4fH/me9zGmXXoyMgVaEoQia3x1maf6sOutVtpTf+scQa d6il7dO1c+RP2gA8SmfjUZctcG3wUO3zzZubcn6LbuLFTqxz5UhicdcRbW5365YVcprY cftA== 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=A9eQjdtNpSglOQUTD4QUH5zVlzebLMVpC6SjazHNu2A=; b=qTvbqQspnSWggZpbj+uQPZJ2ixnfl9cKP9sAC7z131JzFXEO2AMqsiOFmi0PobX5T+ 4wMa6OohYuc974iRBJu24C/3isOEfCxVJLG/REVK1/nYrDSevHGNTxaGf3u9zITsw6Ew k5/PCMiS02B9egHu6rm4DiMzCUOKVE+gdmu2Ecu/xmWWgizU1upJ5JWrx7pCtm2saKj5 G1WFBkfcRVoya28I/R0KFEfrkroFDKwEifO4IqPlr7A2xZ8y7kwUyXd93XxxdZTFH3fv 0kxpByA9dhzxLMp7KQnOagOU/FLUZ9JjJGq0vtut6SOk/+fywvpvB3dFRCs0mnR/0aQV kPmg== 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 f16si1556120ejb.557.2020.07.09.03.58.35; Thu, 09 Jul 2020 03:58:58 -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 S1726975AbgGIKzP (ORCPT + 99 others); Thu, 9 Jul 2020 06:55:15 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57224 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbgGIKzM (ORCPT ); Thu, 9 Jul 2020 06:55:12 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 49A152A638E From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org, Collabora Kernel ML Cc: narmstrong@baylibre.com, matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, a.hajda@samsung.com, boris.brezillon@collabora.com, laurent.pinchart@ideasonboard.com, sam@ravnborg.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 v2 1/2] drm/mediatek: mtk_dpi: Rename bridge to next_bridge Date: Thu, 9 Jul 2020 12:55:00 +0200 Message-Id: <20200709105501.1465636-2-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200709105501.1465636-1-enric.balletbo@collabora.com> References: <20200709105501.1465636-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: Chun-Kuang Hu --- Changes in v2: None 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 d4f0fb7ad312..f7372dbdac0e 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -64,7 +64,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; @@ -610,7 +610,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; @@ -770,11 +770,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.27.0