linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Rosin <peda@axentia.se>
To: linux-kernel@vger.kernel.org
Cc: Peter Rosin <peda@axentia.se>,
	Archit Taneja <architt@codeaurora.org>,
	Andrzej Hajda <a.hajda@samsung.com>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	David Airlie <airlied@linux.ie>,
	dri-devel@lists.freedesktop.org, Jyri Sarha <jsarha@ti.com>,
	Daniel Vetter <daniel@ffwll.ch>
Subject: [PATCH v3 15/26] drm/bridge: synopsys: provide an owner .odev device for the bridges
Date: Wed, 16 May 2018 12:14:59 +0200	[thread overview]
Message-ID: <20180516101510.13215-16-peda@axentia.se> (raw)
In-Reply-To: <20180516101510.13215-1-peda@axentia.se>

It gets rid of two #ifdefs and the .of_node member is going away.

Signed-off-by: Peter Rosin <peda@axentia.se>
---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c     | 4 +---
 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
index ec8d0006ef7c..e3956a7e827c 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
@@ -2471,11 +2471,9 @@ __dw_hdmi_probe(struct platform_device *pdev,
 			hdmi->ddc = NULL;
 	}
 
+	hdmi->bridge.odev = dev;
 	hdmi->bridge.driver_private = hdmi;
 	hdmi->bridge.funcs = &dw_hdmi_bridge_funcs;
-#ifdef CONFIG_OF
-	hdmi->bridge.of_node = pdev->dev.of_node;
-#endif
 
 	dw_hdmi_setup_i2c(hdmi);
 	if (hdmi->phy.ops->setup_hpd)
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
index fd7999642cf8..7c8d05f7cecd 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
@@ -930,11 +930,9 @@ __dw_mipi_dsi_probe(struct platform_device *pdev,
 		return ERR_PTR(ret);
 	}
 
+	dsi->bridge.odev = dev;
 	dsi->bridge.driver_private = dsi;
 	dsi->bridge.funcs = &dw_mipi_dsi_bridge_funcs;
-#ifdef CONFIG_OF
-	dsi->bridge.of_node = pdev->dev.of_node;
-#endif
 
 	return dsi;
 }
-- 
2.11.0

  parent reply	other threads:[~2018-05-16 10:19 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-16 10:14 [PATCH v3 00/26] device link, bridge supplier <-> drm device Peter Rosin
2018-05-16 10:14 ` [PATCH v3 01/26] drm/bridge: allow optionally specifying an owner .odev device Peter Rosin
2018-05-19 16:07   ` Heiko Stuebner
2018-05-16 10:14 ` [PATCH v3 02/26] drm/bridge: adv7511: provide " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 03/26] drm/bridge/analogix: core: specify the owner .odev of the bridge Peter Rosin
2018-05-16 10:14 ` [PATCH v3 04/26] drm/bridge: analogix-anx78xx: provide an owner .odev device Peter Rosin
2018-05-16 10:14 ` [PATCH v3 05/26] drm/bridge: cdns-dsi: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 06/26] drm/bridge: vga-dac: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 07/26] drm/bridge: lvds-encoder: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 08/26] drm/bridge: megachips-stdpxxxx-ge-b850v3-fw: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 09/26] drm/bridge: nxp-ptn3460: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 10/26] drm/bridge: panel: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 11/26] drm/bridge: ps8622: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 12/26] drm/bridge: sii902x: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 13/26] drm/bridge: sii9234: " Peter Rosin
2018-05-16 10:14 ` [PATCH v3 14/26] drm/bridge: sii8620: " Peter Rosin
2018-05-16 10:14 ` Peter Rosin [this message]
2018-05-16 10:15 ` [PATCH v3 16/26] drm/bridge: tc358767: " Peter Rosin
2018-05-16 10:15 ` [PATCH v3 17/26] drm/bridge: thc63lvd1024: " Peter Rosin
2018-05-21  8:00   ` jacopo mondi
2018-05-16 10:15 ` [PATCH v3 18/26] drm/bridge: ti-tfp410: " Peter Rosin
2018-05-16 10:15 ` [PATCH v3 19/26] drm/exynos: mic: provide an owner .odev device for the bridge Peter Rosin
2018-05-16 10:15 ` [PATCH v3 20/26] drm/mediatek: hdmi: " Peter Rosin
2018-05-16 10:22   ` Philipp Zabel
2018-05-16 10:15 ` [PATCH v3 21/26] drm/msm: specify the owner .odev of the bridges Peter Rosin
2018-05-16 10:15 ` [PATCH v3 22/26] drm/rcar-du: lvds: provide an owner .odev device for the bridge Peter Rosin
2018-05-16 10:15 ` [PATCH v3 23/26] drm/sti: provide an owner .odev device for the bridges Peter Rosin
2018-05-16 10:15 ` [PATCH v3 24/26] drm/bridge: remove the .of_node member Peter Rosin
2018-05-19 16:08   ` Heiko Stuebner
2018-05-16 10:15 ` [PATCH v3 25/26] drm/bridge: require the owner .odev to be filled in on drm_bridge_add/attach Peter Rosin
2018-05-16 10:15 ` [PATCH v3 26/26] drm/bridge: establish a link between the bridge supplier and consumer Peter Rosin

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=20180516101510.13215-16-peda@axentia.se \
    --to=peda@axentia.se \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a.hajda@samsung.com \
    --cc=airlied@linux.ie \
    --cc=architt@codeaurora.org \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jsarha@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).