Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3403728ybt; Sat, 4 Jul 2020 16:22:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOE5J6t8rNdGtHs4YjbZUeNrqD2jetZDmiSzlu6IYh70urD9heTOoe8jyFbD0EZAdFOvS+ X-Received: by 2002:a17:906:7247:: with SMTP id n7mr38041465ejk.105.1593904975151; Sat, 04 Jul 2020 16:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593904975; cv=none; d=google.com; s=arc-20160816; b=MfvyFzu40fQwOc1F3iYruqG+smHp7V2+E66aWUCzN+rfz+G/1KDcULE2ymGGfdVQbG lMZuhkdaa5ALx/018Y4V1ratolTZKkrTW6MEuQ8dDJAynZR82pzKjEUbfjBL9mqQQd5c IGU4a8PImucoOWSprwfJlMpWjCsCBBgmmQsdvrQ7ByU+pHsvxUmTZPxwB5NQPAA/cJz8 vEoH0TcTuVurjQE64IQKDNTyQXhXmviz1QfLLh6XOq5glFGVzSn/7TeyyLhNX6iPx6t/ Lm8lr+wcn57PwQ7lR3wqEfDlKFQH6Q+wOS4zIiq8MKW5hGNbOlDpm2/8Z1UzCXuc6YkI HcQA== 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=yUoQFC1aLcrm790LdrzplFNmXLWKpc/RCKeHBgQc+E4=; b=SiPZrqlhAQGAZAZBaBBiPAKxe96YAsDVnQ4vt9RVFn9QlXeKqDdjhIWtiIVPcPUq7w wW+82/tugeSrM24T4RwYzPd0qKKIFEey71+RAI/zz0OqtbQrhk2/3cmzR6xYWd4bt/ae q59PpQZ1VMPxPR2eYhh7F3otG/O1o0a7dFroq0dOVMx9Iy7USSNEZ30zALOuMc6gvCOR uqOTEqp8pPqEoBXZq6Fgs2pV4EHB8ZIlNZk+rxG86eLNmT2H1RfzdOlU0yi48ybacUTA 72FBXH3W5CblC4feNY+C/Ck4Mc/kokXW8hH79GAA/8N7HNSzIG3Gl7giry+zHQ6HXVjd OLgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yobnRxgP; 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 me11si10603835ejb.458.2020.07.04.16.22.20; Sat, 04 Jul 2020 16:22:55 -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=yobnRxgP; 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 S1727929AbgGDXVN (ORCPT + 99 others); Sat, 4 Jul 2020 19:21:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:44000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727816AbgGDXVN (ORCPT ); Sat, 4 Jul 2020 19:21:13 -0400 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 258B4208E4 for ; Sat, 4 Jul 2020 23:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593904872; bh=jjLI1NVY4paYHUmIojobSDVFBbLlkvJZnfkgPCCD+YU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=yobnRxgPmq/BD478RO0cvpD+xb/0uvejoPSdBkq3UdFeQZXlXNWCbRavLRi7G5jXN sQzEMSW1ZjA5FGsVKMmotrnmqQjs3veB0rUTXS3WX/0QqQ3GXePLVhnFNp/qvg6VcM F6HZF0bXrQC8k6Ip8al9F+afQl6w//5t6MLwFunM= Received: by mail-ej1-f44.google.com with SMTP id n26so24598719ejx.0 for ; Sat, 04 Jul 2020 16:21:12 -0700 (PDT) X-Gm-Message-State: AOAM533aE1heT7Xk+VuiKGBnrPJUNZFMb8DWXdYicgfaHXHvDcGjw19O uCQ4bjaDlTlVngYxWPlDTQ62CTUvFavUqMkZsA== X-Received: by 2002:a17:906:1e83:: with SMTP id e3mr23006232ejj.7.1593904870633; Sat, 04 Jul 2020 16:21:10 -0700 (PDT) MIME-Version: 1.0 References: <20200615203108.786083-1-enric.balletbo@collabora.com> <20200615203108.786083-4-enric.balletbo@collabora.com> In-Reply-To: <20200615203108.786083-4-enric.balletbo@collabora.com> From: Chun-Kuang Hu Date: Sun, 5 Jul 2020 07:20:59 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH v4 3/7] drm/mediatek: mtk_dsi: 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 , Sam Ravnborg , 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= =B46=E6=9C=8816=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8A=E5=8D=884:31=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. > Applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-next Regards, Chun-Kuang. > Signed-off-by: Enric Balletbo i Serra > Reviewed-by: Laurent Pinchart > Acked-by: Sam Ravnborg > Reviewed-by: Chun-Kuang Hu > --- > > Changes in v4: None > 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/mediate= k/mtk_dsi.c > index 270bf22c98feb..208f49bf14a01 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -183,7 +183,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; > @@ -894,9 +894,10 @@ static int mtk_dsi_create_conn_enc(struct drm_device= *drm, struct mtk_dsi *dsi) > */ > dsi->encoder.possible_crtcs =3D 1; > > - /* If there's a bridge, attach to it and let it create the connec= tor */ > - if (dsi->bridge) { > - ret =3D drm_bridge_attach(&dsi->encoder, dsi->bridge, NUL= L, 0); > + /* If there's a next bridge, attach to it and let it create the c= onnector */ > + if (dsi->next_bridge) { > + ret =3D 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; > @@ -1177,7 +1178,7 @@ static int mtk_dsi_probe(struct platform_device *pd= ev) > } > > ret =3D 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.27.0 >