Message ID | 20180504135212.26977-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 EA4AA60318 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 5 May 2018 20:17:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA63728FE1 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 5 May 2018 20:17:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF2FB2900A; Sat, 5 May 2018 20:17:32 +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 7F8C628FE1 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 5 May 2018 20:17:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B491D6E360; Sat, 5 May 2018 20:09:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on0713.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::713]) by gabe.freedesktop.org (Postfix) with ESMTPS id C34246E8BC for <dri-devel@lists.freedesktop.org>; Fri, 4 May 2018 13:53:21 +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=SyoAFyxaG4fhnA67YJh3ZZMfLN13UBnv7rswseIzNsw=; b=Sr0SwcuWci9WFlZrPabtaPzJ/aYViaGI5y1t0cmbRH20ogR52kiItX4vpnlcBtRo/YSn/ak6TWGT5CwgObJF6o4K3nmSVTDCoP9FEUTsPxq1pgHQkjseoP/aLrmp07oreJI5FBpKEDX2+2fgJXFPiyNPtistuLaLQe86l54j1JQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by AM4PR0202MB2769.eurprd02.prod.outlook.com (2603:10a6:200:8c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.735.16; Fri, 4 May 2018 13:53:18 +0000 From: Peter Rosin <peda@axentia.se> To: linux-kernel@vger.kernel.org Subject: [PATCH v2 15/26] drm/bridge: synopsys: provide an owner .odev device for the bridges Date: Fri, 4 May 2018 15:52:01 +0200 Message-Id: <20180504135212.26977-16-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180504135212.26977-1-peda@axentia.se> References: <20180504135212.26977-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR0202CA0039.eurprd02.prod.outlook.com (2603:10a6:4:a5::25) To AM4PR0202MB2769.eurprd02.prod.outlook.com (2603:10a6:200:8c::19) 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:AM4PR0202MB2769; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 3:6x2MVH8RpvidIrkQc3fVbkT+j3RKlJdTaefs1+l4jK4wMArcttsfVn6SUAl8+cfsrGpfA/zfrB5TlHArAXwipgRWb10ZKmYiFxd3CdCkM+AG8imBX8hcMWk31sTU+jLpz0/iIRczfYOzg9QvWEtpStR7VcOLzFuvnPJ0vQD7tb2BUhm9BfvKq1/bAf868NtzKLZ47Aft9+QLAs2sjGQ8GMmALgg2UMw9tyrNXPFn7QusEPVL1+UiOsJm6bhI8frp; 25:8cEtFANXTUgCfYwVK/ujbVAJOPUuEAYQde+JkUnRLZx4tJQuO4v4QvXGhkVrELyk32qQem7PFO1xdbnO5YvsDMCw8sX7wWXYoZzr7KA3tp0wSi8t1cDl6rH9rJ3GaW60h6El/7aJWZFTO/AtCouEbQ+x3G+03pNLAUFLIKoo22FsXdBTQP4wFihM4YIiOvrjNsn/XXjXitxuXSMeYhbfUpJ8LXXjg1HaU0yZuIHjMP4ZXgXP/JoSGdv/aDCxZUuA3SO43C5/W1D9SKDBUvyGn8rJzcixTWpIeudEiJ0sqzbzAgzSO16EekuRJw2x++8iunxKG3TZp/lOkmqeI57HMA==; 31:nCv4R1qee/mzp3jmtfMex/vDL/IwpEgh0w8G5b0dEKQqy/f01InMOf57Rgsdyq+G8SCNZ22wLsqHwbCZBrvb/SgW6KRO0PTMRZa5mwzNFVOeJWZ5dG1HNUpVYKYcPFkowiJREmKiV7JZMpYGDO24C+40TB5YrGTk4Ce586mOCFQ746mpGMv+yAEnwCHGL97jZH4GlZafNcAZT0pyEwRWUt64CZF3xrhk9eRKPZF23e4= X-MS-TrafficTypeDiagnostic: AM4PR0202MB2769: X-Microsoft-Antispam-PRVS: <AM4PR0202MB2769E5FEA5DB8A1F596E2F52BC860@AM4PR0202MB2769.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6041310)(2016111802025)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6043046)(6072148)(201708071742011); SRVR:AM4PR0202MB2769; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0202MB2769; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 4:i9z26QX5Rt8krGAr/aLBcYdPQekBk4PKcogZmlrfnLLczig25zYJipF6A5E7CNvt5C4GUl98ae+SkSGXTfORkG4t8q+lYeLe/RMmOtGEsjOncYBvpm+YKWHeByPpmvKuwglafM93PhFDED0HtEUo0LkwwkN05f6Vpwb1SwuTS09EZ6BZHXEggKUBZw5mBfw1B26C/tqS0xalB855zg5nNlZO8KMZYan1PWyJBPEl3NvGfF2u6N9zJftMco2Rb3rHAmJ11xTneVtew6ztMS7Scw== X-Forefront-PRVS: 06628F7CA4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(979002)(366004)(39840400004)(39380400002)(376002)(346002)(396003)(199004)(189003)(52116002)(386003)(50466002)(305945005)(6506007)(54906003)(74482002)(316002)(68736007)(5660300001)(16586007)(6666003)(50226002)(7736002)(8936002)(81166006)(8676002)(97736004)(6916009)(1076002)(48376002)(2906002)(2351001)(2361001)(16526019)(81156014)(76176011)(4326008)(86362001)(6486002)(6116002)(3846002)(53936002)(106356001)(478600001)(11346002)(486006)(446003)(36756003)(25786009)(51416003)(476003)(956004)(105586002)(2616005)(66066001)(6512007)(186003)(26005)(47776003)(142923001)(42262002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:AM4PR0202MB2769; 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; AM4PR0202MB2769; 23:4rOFzS7MShAmiKhgqj05zhqzPdV2FcaU1kUCItz?= =?us-ascii?Q?4zJDITlK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vJ?= =?us-ascii?Q?9E+GxuvBkmt3qoZs1UDQ0839BzfY2l8G7679wEuEjOxcexgj2SPb+DqDwXRK?= =?us-ascii?Q?j74eIJ9fwjkrOBvQiqYsacGkDxscyLoDjCNPpxjBgUZW4bNH9JlqqVirLmjm?= =?us-ascii?Q?PRhhyishMgX2jRHUr5Vy80AGqAoJBtzzhS52I1e4oGosNxClLnZ0bTp32zYZ?= =?us-ascii?Q?YvQaUVXO54N4Gh81RBA9UlzOZhqI3zLg63F2IMkGHteNDzE8hZQKF3JACKsy?= =?us-ascii?Q?8HzqHalYLJbwNf4IZaHNGC/OK34R3nA+loRhYgeOHu6Efup+SvkDQ0ahkQ+p?= =?us-ascii?Q?sauiG2QZ79Cm2bXjUsM6BVJCT8458toQ13mzTtyfPycdq+YQgVWVMhMAUzmv?= =?us-ascii?Q?yZdghz9SpYT7ESjog3jNu8TbQXtcht2xp4iLwXWgPW63ESVL2cKezhjJi0iE?= =?us-ascii?Q?QDsANU51JTlGDMoDEg0vIKcGxnG8c+fKW9afzELzD+8wdfj5bsZTjbbwFFLj?= =?us-ascii?Q?ndT0Iz+81Aw=3D=3D?= X-Microsoft-Antispam-Message-Info: Ik6tvGE4Uw19la5IOws4JUOZm4+Ew8uCEtTi76YD0EiDzjYcQrDqoOJI7j3A6lI3FZVSVpvKt5bkGrCLOfG1t7Q1iKZ1dP9T06V5a/c2bEb+E3u7hQ3vPZdH7sgjPkNlbMKwvJowcZNlxOD9zbpwVmeEZNyssSjNIBUb4Cz1Rn378KkhCifJLnWdTs46nbZi X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 6:ikqqN7T9B8uOPPCzth17DyfuHnvxd3uOkieC7DlQqWJOlp0SbBzZxxWR0AqjJQ6hquWEluh/lWL3CeIWeRxYhzd9AI4Gbc3VA66ZeTjo8vYKrYP5yoCRJy4lFmB2pHUJeCEpCR8zVwecPbz2+xhho3Yjw0VgG/9wkrhmuTKmisDk67zTL8CnctoRV+luzryJUIby/LBAIe1l6jTqe7qCf+9x4Sfu08DsC1PJF8RxWUDqn98gO+0ytJinRQn6dSMf57XXsNXf+8EZ3Lk+xwb5D1W/lt3IIRqvbr4Bufcq/RbCE2iS17DMZXhwF56tvKONeoxtDi7tSGdTWCrTVHOExWn83TLMc5/r6dqGgxu7Ion6vbdo3OcXIQriYcBSkBslbrPKYEpS48roSZ57ntEMpommZBNsKRfYmpCCzGnWEzvCQAOBsQ+sB/D2+4bXx7g7QAX29i7vFO0hQ8D0OBTO1g==; 5:TUHAke03XSd7rvEvxj8IfABJt79uYP3axZhkPsZXpBlsCylt4Ks7H+BEby8a45rNz03FPkW5Vx7vWfr6H792aAPWLd0TTB9xDQpw9UYk0V1Vff0x7+LI0MjY2QTrzX4G58Kw1u9dkxDx6Au7wrgbtWFIXS1tAJR/WrGfbi2Yqeg=; 24:EJRFSsAA75AsQZQJ8f9ShITFPa1jtRjHpx8VzX5zweQFZBr+agszA0U4YiN3OO2XoCyhWnNWDxIYXtrFsqZql8sjQ7axT6n8fYC9ZZTQfCY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 7:NBdu6vILQV9cqhJYsxfDSwEC9L6VNqKCClKwImvOpH+zrN1uLPCqj3y0cvyoWR59be2bYPU0DY/vm24Xqo7aXiOy1eo5YnCcwkrOWU1GaG3VlRaxewn+Wj2bc8VWFMOGnC1NM6cJfSzsp47euHtmkf1mmH4tCjaKNYwoz5PwAibQMcT8E7eRooEOpR/fgSUZBBM/YGk2oq0Tx2rAwOQeFvEc4RSWcRpmNHFxQT3Z19N1LMdZUthMz3HyNhlYwDjw X-MS-Office365-Filtering-Correlation-Id: 347cce99-a839-4f35-c4be-08d5b1c664ab X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2018 13:53:18.6837 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 347cce99-a839-4f35-c4be-08d5b1c664ab X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0202MB2769 X-Mailman-Approved-At: Sat, 05 May 2018 20:07:54 +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(-)