Message ID | 20180516101510.13215-16-peda@axentia.se (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 73139602C2 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 17 May 2018 07:17:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C24C28731 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 17 May 2018 07:17:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 508E228791; Thu, 17 May 2018 07:17:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D589728731 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 17 May 2018 07:17:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F32946E638; Thu, 17 May 2018 07:15:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0103.outbound.protection.outlook.com [104.47.0.103]) by gabe.freedesktop.org (Postfix) with ESMTPS id 681F76E001 for <dri-devel@lists.freedesktop.org>; Wed, 16 May 2018 10:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SyoAFyxaG4fhnA67YJh3ZZMfLN13UBnv7rswseIzNsw=; b=XVjjEl+PS0TE6dhB1RMqOVqnOEExVYgfsINsWKu7S9DwkqphwcTLOBsrD+AydmZaNsrbfSBpaqZKtKrs0hAJIy5Ax9ADOY2O4bOhblhhgvl20radtuEvDvaM/ag5eELgfI1aOsqpjtX3WoZG2h6CLek2yMOKNfSbjul2n8uixx0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by AM4PR0202MB2772.eurprd02.prod.outlook.com (2603:10a6:200:8c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.776.11; Wed, 16 May 2018 10:16:15 +0000 From: Peter Rosin <peda@axentia.se> To: linux-kernel@vger.kernel.org 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 Message-Id: <20180516101510.13215-16-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180516101510.13215-1-peda@axentia.se> References: <20180516101510.13215-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR0102CA0013.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::26) To AM4PR0202MB2772.eurprd02.prod.outlook.com (2603:10a6:200:8c::22) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:AM4PR0202MB2772; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2772; 3:XFTVdooR5mWtVFWFQznDQmIULtSgoYQgqx/kc4OJzvKvnjYYG8/VdvaGZHRipopTlrbGZVYRQd4r6ti8sgmDcBLVJDlrYZ5bIY7dyeuOzn+1I8oqODpXX+9zYxeRIyPJd/8tACEaAdWHp8Na6XH3yxHMTXFwObiVwSNsZbZIRkfMTR9sKvZl9RKnjwhipFoX1Mm3AikxTjUjtJKWe/Ptude+kH/DcZ2xW+1huBzRn9Ky6nriYfxkFC4J0FYhxiqE; 25:4eSBlU48swYBA1T8UNnL+x/EgobqhYHBrCSDY0k01j+C7UZbvwFUA8fbWEi0GffcOyJHBE60khHSSFj01lE3FIMgkRnndNqJQz+5k66+AoAkzk1Zvy9RgjJCFa2/PgSyXI5H2W1fbZ3VUTEjthzLuvl8mHF6EzpcYO8EzBcUHF/91fYI+76mHxVvrlsfX11ES9D/Hk07nFS4f8GZi65iOtqtWGkuEnDsFnzjkMx+4DuE08bdiACMQ8eugI1GaBvnTchYG+gdNfNEQQ/j0xJ1PEISBSc3bKu+ZYvDLM68Y3bGp4pMSq+kyKAx9yksz46//ukD7ZUJVFHxaIGWMijt3A==; 31:BmWhp2dwY3qnlZCEMRpVr3yBXWfAr4+TOBbfumF2H9j/bp1hX4JO/8eC0YMZjDeIcLWJd3+ct9hI3YRbPe0uri2BBhXTQpSm25mtpfU0t5HB5OtR5WOp5Uod3Uox7oOJekaHVRPb5NWkJ3Rsg4OLd+iBQj0J5vpPpU59aUF8eIqKTI2qtPa3Hr71Ep2PTKhVz52wNJx1sdvEQIvbmgU0V5B3gnaWmRmILJIECT1AYlQ= X-MS-TrafficTypeDiagnostic: AM4PR0202MB2772: X-Microsoft-Antispam-PRVS: <AM4PR0202MB2772FBB5A46CD8936CE9EBCEBC920@AM4PR0202MB2772.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(6072148)(6043046)(201708071742011); SRVR:AM4PR0202MB2772; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0202MB2772; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2772; 4:AR8G0TVZv+YQE47vleY47lVhrspNxmw6SKMb/PS0/slz/Mu3YPbQ4oJPW9/BzMATcnZzrZhPQARjOx74iyYVQBy0l5mw4tNIgp64sttRRDR7rRdAaZTksDkrRZFqMf989YZQlMfdN1eZnqAWtD/h6TB2WkWJNHXLwlE0CRDMnR1hjE0m9CUVJgxBBpJrm5AsoU4wUrcesju/E/0CnelWKTnC9z9/wF+K1XsrdzxDcy9E8O57A4kY2X/uaJDU8mH3DMtidV7VGZx8gfEZO8awBQ== X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39380400002)(396003)(346002)(376002)(39840400004)(366004)(189003)(199004)(86362001)(25786009)(48376002)(50466002)(68736007)(36756003)(2906002)(105586002)(97736004)(6666003)(6916009)(74482002)(2351001)(3846002)(6116002)(1076002)(478600001)(106356001)(316002)(16586007)(2361001)(7736002)(50226002)(53936002)(6512007)(305945005)(51416003)(8936002)(52116002)(8676002)(16526019)(76176011)(446003)(66066001)(5660300001)(54906003)(47776003)(81156014)(476003)(2616005)(956004)(81166006)(186003)(386003)(6506007)(26005)(4326008)(11346002)(486006)(6486002)(142923001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM4PR0202MB2772; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR0202MB2772; 23:43kNo/mXxUHAb8Q5YzjJqVX5QsQtcV0v95OnP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645vYFX64sX2nxQJkNAx9v46ZNvcUpdL5kPBagaxPtI/jurMyWCmVuxkzWLt2krpC+emedbAUobsTwCIu+7iGZLVv1tSLP2ASU7/oDXx/bhjv8biln3VaCOm2YbYMEWYCsdNEv5+UP8zj0Saps9uJsx2S2k6L+4r+kWw==; 5:5sjT6yJ60wYp5VzRaah/JTaCaJPfbp4Zy2d7/L1IHHxaAgo9c6R9ynMvh8Fs8nPNo1dtTqyXqtMWKG4GYXUS4UOolR2nuj9xE/GpnCU7byNiVEsWu3OK/Pe61fe02CkuurM3tot7Ur5v5TFLtKEq2gKSNfaPNOJlmEnctXp9GJ0=; 24:6FV1pfsLWt4ICzsleBqUmXh10/WfOZXrsRbd/uaGIeavfKx8F27XM0mpJkMS4FlyBbfAidKpmCghn1s0/0pIaWyTA3you3nTHwDHNnsY7wY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2772; 7:lGm16Hzav1QsoNcFQhp6tI+4wLo36V0wNm7cqEVhAOyR3fJJQ4CWdvlVj7LrwviBwVJsGIPUGNieYklKXtd8wfs57NcVGLyt5IsVIdCmPOgf1NYixa+SqBC+ptG+5iMcVkNnr05a387xBMBfp8OLXCTllT9zYLzZst9WHBVrN3VufIOjG3PGYISyXcSPcXphsfHvkMuk5B5KiVmwTmsXExuFizyDvaJGHdaGIr0US8Qb/N90Ax+yCJoG0pl2wao8 X-MS-Office365-Filtering-Correlation-Id: d4b3aa45-3f02-428e-45ae-08d5bb160f0f X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 10:16:15.2981 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d4b3aa45-3f02-428e-45ae-08d5bb160f0f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0202MB2772 X-Mailman-Approved-At: Thu, 17 May 2018 07:15:35 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, Jyri Sarha <jsarha@ti.com>, dri-devel@lists.freedesktop.org, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Peter Rosin <peda@axentia.se> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
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; }
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(-)