From patchwork Thu Apr 26 22:31:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10367593 Return-Path: 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 E7A4F602DC for ; Fri, 27 Apr 2018 07:37:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D700928305 for ; Fri, 27 Apr 2018 07:37:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBE0628397; Fri, 27 Apr 2018 07:37:52 +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 3B44A28358 for ; Fri, 27 Apr 2018 07:37:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 275AE6E7F4; Fri, 27 Apr 2018 07:37:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40130.outbound.protection.outlook.com [40.107.4.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 661DF6E7BF for ; Thu, 26 Apr 2018 22:32:44 +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; bh=TkqVY5cgvQBAclg7z0dmkoDPa/95atkzYvGnIPcY94c=; b=svrv2i/BH9M/IU3p2P8Reh7L9s6rExc4ahiWJRl11ysOtu2H5DB0eFCZ52fd7/AIs+DAoQJJNGR0TNzHSvFjpQcW/USMwjYdlOoWjC5gbDC9Ss4xiWpJ+V0nZgUbZ34t4vBHbIV1jjdK5D47+fRJW7xm5HELn7fAWWO9Y6Jyg+A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0202MB2782.eurprd02.prod.outlook.com (2603:10a6:800:db::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 26 Apr 2018 22:32:40 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH 14/24] drm/bridge: synopsys: provide an .owner device for the bridges Date: Fri, 27 Apr 2018 00:31:29 +0200 Message-Id: <20180426223139.16740-15-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180426223139.16740-1-peda@axentia.se> References: <20180426223139.16740-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR05CA0366.eurprd05.prod.outlook.com (2603:10a6:7:94::25) To VI1PR0202MB2782.eurprd02.prod.outlook.com (2603:10a6:800:db::7) 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:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2782; 3:IhXFWhWGy3Ir7OkXlFxzIFumEDu+rhQoG9ovKvs4IxGnOrrii8yntxyQo3PiQ1QAm+9oGpoRkiCbPwD05weFn7AMQ1WjLqcDIlcCpdN/2LP0VFw0iQ3bSUgWAkLgFEFC2oYpqVM5QrEUsURdfCwcsTMe8uChtChVedrrJHkbGnOeQ2P0X06Rz4M24zoyTxwz3+B2owPCmjxmEsE2KrxxqkFUq2COZnqu1uMtseeJ8RAzb5mmaNNBksQjH3lo1sCS; 25:4Docm16BCx0JlmplCrs2fIdYEV3xtfOsgXzZkZc5I//Eku4gp/+EMTpySeXIllBP4pDI44y8nivkcdDZUNaF+sJ19xL46+c0PWrYFXnDfGbQgIVizLfverfWC3nQP2DPuRFdXYEcuHdbANUm2BRoRzsy760asbSi5vLcrMDZJUa7fd9GcnhH0rg+4BINXvfXmAgqA/qr5kkIYwx4LQV7lh385rOjIKcPLFFjKtZDavU4LQhmeH0+WO1QodltTUWaVUN6dd1EgaSZ9IwT3ViyGbSs2ka4sHfOdY39gSMeFkoqTt+zpej2Rg/N5TIMoLbeyMmWlQwmeDb30G6pdo4B/g==; 31:curubrCTIZ9KGSJzCeiwhWT4xuiOCxPzCIC1I5mVN9a2cpHBgpP9pgu7tEbX1Eh0cQtLf9OYqnipyTM43koUBPODsLUFxpAqyx+1l/zTFndRqIVXZjqDU9v5NSfCqscOxvvSzsNTr/0THsPwerJjISnos21V78lmGer4v0tCMuDck4kIK39jkTaXhmkVoj2KblAVcaa2anLIgK4Xy+SpXv2CDFK5w6kN5DOuM+/P/p8= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2782: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3231232)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6041310)(20161123562045)(20161123564045)(20161123560045)(2016111802025)(20161123558120)(6043046)(6072148)(201708071742011); SRVR:VI1PR0202MB2782; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2782; 4:t+DWOgTb9ikw6zZMb9exxtlSstAZsN9/a/pAsfSzgtCoHpbz/AjwVmPfP2O8ehCBE/jrWVXQ5q0K3HelV8tYYNoAJ6HT1NJf9CPwhDfOQCS4eOZSgYcixkaOvlsCMvVhSYpatz/sEYkoqzIocoKX6CEy1n5dccd3jxJJaXZG9HFzkWmuZYmBWewTImbK02iPYBpHtYtDaP3iH92fTShunlsjQm0oI9QQbGMJVjbDtJFDVhRyIq22RcACBJfQ8i5KZxpSiV+UywdZcphwAThYHQ== X-Forefront-PRVS: 0654257CF5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(396003)(346002)(366004)(39380400002)(39840400004)(199004)(189003)(50466002)(186003)(446003)(86362001)(956004)(8676002)(4326008)(476003)(2616005)(54906003)(11346002)(51416003)(53936002)(478600001)(68736007)(97736004)(305945005)(5660300001)(316002)(386003)(52116002)(6512007)(76176011)(26005)(7416002)(6506007)(486006)(3846002)(6916009)(6116002)(7736002)(6666003)(66066001)(106356001)(2361001)(16586007)(105586002)(81156014)(8936002)(50226002)(47776003)(81166006)(2906002)(16526019)(1076002)(74482002)(6486002)(36756003)(25786009)(2351001)(48376002)(142923001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2782; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0202MB2782; 23:IOb1AaOZXHq1KHS/Ay6Oy3oucI7I344j9vBVt4u?= =?us-ascii?Q?lxbYEpURtc8nko9+ZIss9oVbZrD9Aryy2riqshWNfuL8bpuO6OTU71ir/ABw?= =?us-ascii?Q?0Ab1/iO5eIYfk8ZCch9m75TZWqUixdcGEQRxgMJx6NxYiv7hiKvjhq7p1Qpv?= =?us-ascii?Q?HM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2snKaXSCwrLEBXn1atnWCs7INqL7g==; 5:r+bWSa2cU+p/wwJDVeuupAKsL5RCc0U5toqGoQa/niDegjfbZKSP+cSRMTKUHkNaGOz7Zx3ZqjijKojKeXHQESPjXMPJ1/S32rcSoiNJTf3MWN6V7yYPsNzoaZT/RR6AhyQj/gdZrju0CcxpidYQUXCPwoFvZ4BmeuYn58C0ON8=; 24:a0kNQGvl0bRchG1LS/SpMw28r4f2ZAXzoEeT8YazSLy8FaHYnamZnZAgRlXr/qaeAjJgzy5xqv6Wv2Mo16/D6/9x7aMzWb8R+O37eOx/tMI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2782; 7:2+2o2/mRfOsLWM/G+NWLpQb3MVPL3E1HeVHOXENPxe0GksLs/Px4xahv/NAauButcDPyfs//a+MmhvGTQ6z/gfrLVZ615RbwzEPj6vvwMuhQU2PKrLWiPKSG/LFLiehwBPObjgJiDwvNYS77ifXZUg7WHoTkiv/VnSMePqQ2kjv4HJLI6fGIX3/75Re9Ylmx9RWCFz69AKo39iazZj+ZqLuMtbv66KLyPlXCdnYfrr0Iovb0sLoP/Nf21/M3Y/Aj X-MS-Office365-Filtering-Correlation-Id: 0b426e8c-ce72-473f-a7b7-08d5abc59f7e X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 22:32:40.5890 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b426e8c-ce72-473f-a7b7-08d5abc59f7e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2782 X-Mailman-Approved-At: Fri, 27 Apr 2018 07:36:56 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , David Airlie , dri-devel@lists.freedesktop.org, Jernej Skrabec , Jyri Sarha , Hans Verkuil , Russell King , Laurent Pinchart , Peter Rosin Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP It gets rid of two #ifdefs and the .of_node member is going away. Signed-off-by: Peter Rosin --- 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..48ad6888c967 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.owner = 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 226171a3ece1..91e2cc3da90a 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -934,11 +934,9 @@ __dw_mipi_dsi_probe(struct platform_device *pdev, return ERR_PTR(ret); } + dsi->bridge.owner = 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; }