Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp683809ybj; Tue, 5 May 2020 06:11:14 -0700 (PDT) X-Google-Smtp-Source: APiQypLWIHxQcd7Nr62y+XeQYXB/po67oo8ZMa2eZHx3S0vkArzPv9t0Qe9kfbzz8S3XoI4iscr5 X-Received: by 2002:aa7:cc88:: with SMTP id p8mr2485642edt.387.1588684273753; Tue, 05 May 2020 06:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588684273; cv=none; d=google.com; s=arc-20160816; b=edhuYMwmZElhwZXEhV5Prm8O3+exvwW2WXBhVgjAMM+Yp9Oa3VW5EnIP3FyP6qeOlB ihNGZG+QyU+vKl/IGHDn3RZIrpja6HaOf5/OSqyGJcx/X+8/SAvJ3lteuB4rTJ20IBpu Ej0W7v9DgZb7BwLQXmw1kImljXtULbzVKyG92w0BFwRW9GPC9BWbefDaxZRtW7fwfals YGYcxStT5bl61DIvvo3q9sIBJYgMbnkQb6lK76/mcuKym2FtTXHPm1noBGd0zyzDA069 dTcTAwgHKD5ZXiFYQLWzr7NBSDG57a8nUIbhJ88dRvc+g+AlVYR7sh9iojgxLDR6UB4s Yzpg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ygh0E7e45bqui1rOD4LCq9DGlU2Si74SFpJtakBmEGg=; b=J4tiwQM3B90KrDeT7RoCdnNAGCx8MS4DdaG6X74gOD/dZdxXcTEnwlQ5LjtYg5Uuv9 D9YAXmtPWIOrCJk9oEKzblgCcTWrE1qs5rkk8KdMydeb9wZx3qIX+k2y9ut/a8B69nJr 55mmjl2k/rmiowH83RN6kWnYbfv3HdpKprvqI3Nxhnd3DNdyezaZ32pOdJLYElTlK6Lf leRa48UjRzU5CBXg9r3JDNlWTPiBHJMIyQbxEJyJ96EMpIYDAUkPSJztwqnjbthawXfg edYNQm0QSTULYBPjRXTH24vTAwkiHnlQ6EM00Jgpq1VLZ5iADsZMLsmHpfoLNv2lQ/hH 5dgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=neqboCcz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si1072275ejb.118.2020.05.05.06.10.42; Tue, 05 May 2020 06:11:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=neqboCcz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728993AbgEENF5 (ORCPT + 99 others); Tue, 5 May 2020 09:05:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:46962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728268AbgEENF5 (ORCPT ); Tue, 5 May 2020 09:05:57 -0400 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E76620757 for ; Tue, 5 May 2020 13:05:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588683956; bh=dvbRX7EeM06dsl2ZOfOT5WBgv/T4PM2ppoNNZuX4hm8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=neqboCczN+Cdz09ZuDmJ5SDMNim2FB9HO7s1Q9yYJ3/NilYj5E454ePytgS+Asq6w aoC5r10DK1ND17IpN/vWZNpYfjligx54R/u3Wiew9ALEj/kS/uW1r59UOgv5Ivm9AI xbI9Syh3SVWVXuDtwl2GIBYcVCLcnkR2I632xPaI= Received: by mail-ed1-f54.google.com with SMTP id a8so1787282edv.2 for ; Tue, 05 May 2020 06:05:56 -0700 (PDT) X-Gm-Message-State: AGi0Pub8/BLBaMw13mHy7iW5MGdvupkDmHklQAxs4mKLt+41TWajy8z7 M/8eHzUypAVySxsRUekp6/FqXtCo+pnlGQ9b2w== X-Received: by 2002:aa7:dcd7:: with SMTP id w23mr2569139edu.300.1588683954729; Tue, 05 May 2020 06:05:54 -0700 (PDT) MIME-Version: 1.0 References: <20200504141408.60877-1-enric.balletbo@collabora.com> <20200504141408.60877-2-enric.balletbo@collabora.com> In-Reply-To: <20200504141408.60877-2-enric.balletbo@collabora.com> From: Chun-Kuang Hu Date: Tue, 5 May 2020 21:05:41 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] drm/mediatek: mtk_dpi: Rename bridge to next_bridge To: Enric Balletbo i Serra Cc: linux-kernel , Collabora Kernel ML , Matthias Brugger , Nicolas Boichat , Hsin-Yi Wang , Laurent Pinchart , Chun-Kuang Hu , Daniel Vetter , David Airlie , Philipp Zabel , DRI Development , Linux ARM , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Enric: Enric Balletbo i Serra =E6=96=BC 2020=E5=B9= =B45=E6=9C=884=E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=8810:14=E5=AF=AB= =E9=81=93=EF=BC=9A > > 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. Reviewed-by: Chun-Kuang Hu > > 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/mediate= k/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 de= vice *master, void *data) > /* Currently DPI0 is fixed to be driven by OVL1 */ > dpi->encoder.possible_crtcs =3D BIT(1); > > - ret =3D drm_bridge_attach(&dpi->encoder, dpi->bridge, NULL, 0); > + ret =3D 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 *pd= ev) > } > > ret =3D 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_n= ode); > > comp_id =3D mtk_ddp_comp_get_id(dev->of_node, MTK_DPI); > if (comp_id < 0) { > -- > 2.26.2 >