Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Andrzej Hajda <a.hajda@samsung.com>
To: dri-devel@lists.freedesktop.org,
	linux-samsung-soc@vger.kernel.org,
	Inki Dae <inki.dae@samsung.com>
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Rob Herring <robh+dt@kernel.org>,
	Maciej Purski <m.purski@samsung.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Marek Szyprowski <m.szyprowski@samsung.com>
Subject: [PATCH v5 1/9] drm/exynos: rename bridge_node to in_bridge_node
Date: Wed, 25 Jul 2018 17:46:36 +0200	[thread overview]
Message-ID: <20180725154644.25412-2-a.hajda@samsung.com> (raw)
In-Reply-To: <20180725154644.25412-1-a.hajda@samsung.com>

From: Maciej Purski <m.purski@samsung.com>

Driver uses bridge_node to refer to bridge on input side of DSI.
Since we want to add support for bridges on output side lets add
"in" prefix to avoid confusion with out bridges.

Changes in v5:
- replace mic_ prefix with in_

Signed-off-by: Maciej Purski <m.purski@samsung.com>
[ a.hajda@samsuung.com: v5 ]
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_dsi.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
index 7c3030b7e586..351403f9d245 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
@@ -279,7 +279,7 @@ struct exynos_dsi {
 	struct list_head transfer_list;
 
 	const struct exynos_dsi_driver_data *driver_data;
-	struct device_node *bridge_node;
+	struct device_node *in_bridge_node;
 };
 
 #define host_to_dsi(host) container_of(host, struct exynos_dsi, dsi_host)
@@ -1631,7 +1631,7 @@ static int exynos_dsi_parse_dt(struct exynos_dsi *dsi)
 	if (ret < 0)
 		return ret;
 
-	dsi->bridge_node = of_graph_get_remote_node(node, DSI_PORT_IN, 0);
+	dsi->in_bridge_node = of_graph_get_remote_node(node, DSI_PORT_IN, 0);
 
 	return 0;
 }
@@ -1642,7 +1642,7 @@ static int exynos_dsi_bind(struct device *dev, struct device *master,
 	struct drm_encoder *encoder = dev_get_drvdata(dev);
 	struct exynos_dsi *dsi = encoder_to_dsi(encoder);
 	struct drm_device *drm_dev = data;
-	struct drm_bridge *bridge;
+	struct drm_bridge *in_bridge;
 	int ret;
 
 	drm_encoder_init(drm_dev, encoder, &exynos_dsi_encoder_funcs,
@@ -1661,10 +1661,10 @@ static int exynos_dsi_bind(struct device *dev, struct device *master,
 		return ret;
 	}
 
-	if (dsi->bridge_node) {
-		bridge = of_drm_find_bridge(dsi->bridge_node);
-		if (bridge)
-			drm_bridge_attach(encoder, bridge, NULL);
+	if (dsi->in_bridge_node) {
+		in_bridge = of_drm_find_bridge(dsi->in_bridge_node);
+		if (in_bridge)
+			drm_bridge_attach(encoder, in_bridge, NULL);
 	}
 
 	return mipi_dsi_host_register(&dsi->dsi_host);
@@ -1783,7 +1783,7 @@ static int exynos_dsi_remove(struct platform_device *pdev)
 {
 	struct exynos_dsi *dsi = platform_get_drvdata(pdev);
 
-	of_node_put(dsi->bridge_node);
+	of_node_put(dsi->in_bridge_node);
 
 	pm_runtime_disable(&pdev->dev);
 
-- 
2.18.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2018-07-25 15:46 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180725154658eucas1p14acd753797d90debffca5b6ff6576b33@eucas1p1.samsung.com>
2018-07-25 15:46 ` [PATCH v5 0/9] Add TOSHIBA TC358764 DSI/LVDS bridge driver Andrzej Hajda
2018-07-25 15:46   ` Andrzej Hajda [this message]
2018-07-25 15:46   ` [PATCH v5 2/9] drm/exynos: move connector creation to attach callback Andrzej Hajda
2018-08-07  8:53     ` Inki Dae
2018-08-13 11:17       ` Andrzej Hajda
2018-08-17  1:56         ` Inki Dae
2018-08-20  9:00           ` Andrzej Hajda
2018-08-21  5:27             ` Inki Dae
2018-08-21 11:21               ` Andrzej Hajda
2018-08-22  2:59                 ` Inki Dae
2018-08-23  9:50                   ` Andrzej Hajda
2018-07-25 15:46   ` [PATCH v5 3/9] drm/exynos: enable out_bridge in exynos_dsi_enable Andrzej Hajda
2018-07-25 15:46   ` [PATCH v5 4/9] dt-bindings: tc358754: add DT bindings Andrzej Hajda
2018-07-25 15:46   ` [PATCH v5 5/9] drm/bridge: tc358764: Add DSI to LVDS bridge driver Andrzej Hajda
2018-07-26  7:36     ` Archit Taneja
2018-07-27  7:17       ` Andrzej Hajda
2018-07-27 10:30         ` Laurent Pinchart
2018-07-27 11:06           ` Andrzej Hajda
2018-07-25 15:46   ` [PATCH v5 6/9] ARM: dts: exynos5250: add DSI node Andrzej Hajda
2018-07-26  7:48     ` Krzysztof Kozlowski
2018-08-29 18:51     ` Krzysztof Kozlowski
2018-07-25 15:46   ` [PATCH v5 7/9] ARM: dts: exynos5250-arndale: add DSI and panel nodes Andrzej Hajda
2018-07-26  7:48     ` Krzysztof Kozlowski
2018-08-29 18:54     ` Krzysztof Kozlowski
2018-07-25 15:46   ` [PATCH v5 8/9] drm/panel: simple: fix BOE/HV070WSA-100 timings Andrzej Hajda
2018-09-27 11:51     ` Thierry Reding
2018-07-25 15:46   ` [PATCH v5 9/9] dt-bindings: exynos_dsim: update of graph bindings Andrzej Hajda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180725154644.25412-2-a.hajda@samsung.com \
    --to=a.hajda@samsung.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=inki.dae@samsung.com \
    --cc=krzk@kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.purski@samsung.com \
    --cc=m.szyprowski@samsung.com \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox