From patchwork Fri May 4 13:51:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10382383 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 2351D60159 for ; Sat, 5 May 2018 20:14:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13E5B28FE1 for ; Sat, 5 May 2018 20:14:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0890E2900A; Sat, 5 May 2018 20:14:03 +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 98C8428FE1 for ; Sat, 5 May 2018 20:14:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC24B6E303; Sat, 5 May 2018 20:08:52 +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-eopbgr20090.outbound.protection.outlook.com [40.107.2.90]) by gabe.freedesktop.org (Postfix) with ESMTPS id AE0796E8B5 for ; Fri, 4 May 2018 13:53:08 +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=yck8R34MjYEfLQoLe/GCqlA7BZUYB2V51oA3qoYpZtY=; b=GEMjo3nuBOJnxHodsSrXm4UKC0/Y+kP1EYZMKLrlJ77GGFne1jTh8HBnL2ma4cqzKnsFKYAabiDjAgIcCCC00xDdaOP7rqkdAXIotfCkTP8470GeylJAk7ZHwizP6xQVg8M5u2qLAxr5yNO9+ZFpl/YEiAc54SJMeWawtctVfZk= 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:04 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 10/26] drm/bridge: panel: provide an owner .odev device Date: Fri, 4 May 2018 15:51:56 +0200 Message-Id: <20180504135212.26977-11-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:RP3kmm1+93fUApgvKHgN7vzX1B/RGAdt92L9voBgRet8C3BVEH775l2I8r0hfLQxXEaZsMyXqku6ORtQ3arwxRr7j4V7vwGTXdKmutOm0Bwiy/zFZX0vynKv5dAJpuWKT+gRG5csZU6pYq2J9KtjJPz+JaINkutEw4a+ANLocvaV2Z+LwGi4rzyGMhawhRPjzj4jr744GOE7Z0Jy7zrk63ZWB7dM7sFGojD9OllEMwIu70X54P2JJm3x58bf5X/F; 25:dEGG4T00nsLDvcx1mwtYBslZ0DHSuozF+ycPgS3DajLcsdcf3/JC2ST5mbZZJJmjAnTqVr49C2JdELvqfZSMbZfSWIYGs12HSU7Seod6aKnFEx5kydqn4EDYraTS5rxjZ+ETAn2g36PNQdqgDFTp6a5hA9tulRkTmhmQL2bHyqYsqXKAUBzePfc/7cT9qBwyMwB2pA1UP8IaybyyUFXhpr7LXQCralNDD2GB6ff4I1vEbDnDb2r0l/QWV2keTPRZ5Yv1OSee+XHyYR84zXHrjxGc+ofVr9W8KWkTjWRafg8HgYIzxOhLFJrlmmKe39EOgA1EXq/zOyF2+kaiZWbQcw==; 31:RVmNyii+bWOcSXhVeIngjggH0LMwd2p4xZmu6hBiiA70xKb6kIwwHbk49vkCWHDR1X20/SyWHtmfAxDC7HsvzaX3zm8hMN1+12Auy4cT/SX+aaGTwQ6kbDEKBMAxctziSSEKspclBcLdF6NoGHOfo9ogS1dH90mZye9GG8TZSc5tNhJjmrwX4nj5dYVoTq8yXE/PrvYe0nIw0sZSl1gEK6TEJf89t65fm0SfBX/NZds= X-MS-TrafficTypeDiagnostic: AM4PR0202MB2769: 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)(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:zFa9X9WYqM6cu2mhajjhMflL94ci/o7dFN/d4K1zWTHFN4zJYYCMNRuZITbD+wJCgAX2fpX78yVFP9t+cUBR1n03F1UrzkwOcEDFJP80vx+TIVpdOudM2FbFYKb4nD2zfLuLzDhxuHptT6uVRMn1U9x9zekNOILRY8ClC99GaL33bJKnBJuwcGphQ5WSlxbrtwneOUgZzkubBWv+rfZx5T1nlIIOb2rX+mKNF2Gy4nFaE3kC1XbsiSCDeurAq4ghI0dnnoLqfUNujHBWtMubcg== X-Forefront-PRVS: 06628F7CA4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(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); 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:C9V8pCVpw97D9rVj3JYxDDKq80E5+IemstUG2q6?= =?us-ascii?Q?A2XgSbH7iSeOYoRzlBGgLhCSe/lasptHghS9NJwIfKEJ/rF2/iyTKOnr2T0X?= =?us-ascii?Q?uUgjVELsBzQmOptpFGwxM1Zjv7IbifEFpJm/chDQP+mZ7ZqTYhGcmjkQF2cT?= =?us-ascii?Q?epkYY9LtoDcH7Apil98aXPYfNWRTlLQgPJgOL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q2TsgXciTQ2d5v310Y1PNch2kRjmakgtALzWHfUHIXB3WmA6VjlInNkuOiuLz+xSh6v5SHSBmTmijs0cnwGbWbwD+6zyWuIxt+EvKjIE3H7iHOX79MsMCgg17w3Fh7cLyWrJcYx2uMrHPS+jJhk=; 24:qyXUYwrzmt00JPEBEa5YnPvOPxb2rgwkMpStTEinW60m62M9uSFhqHCp++9ZSjphHJzWTK4yWXIxpBHbR1p53/lWZGyUU8Twy0+vvb2FGfM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 7:G3cv1FBRMb3YT5XZduZrM8R+zU7cvsPZrLau/zBdv0/+VhK53QP6U3F06Ct7tjD5qiYpZWgquzuuDJG3EwixGqcdVKc0ehstOH1Df7uRzhIfuXB1LwV6oAwnhVQt3uixorHvn+hVSGlMvapnR6idgZ11ARRbkUpXBKm4S2oE/aYYxdcmvJETf2XfYUuJRh6s0hWADs2Bv7+NjL6VnM1vwOEp7x2QP810y8vxscOkfbbnQY8B/1xE92He1wt0kuJu X-MS-Office365-Filtering-Correlation-Id: 565eb2da-1625-4a5a-87d3-08d5b1c65c1d X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2018 13:53:04.3307 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 565eb2da-1625-4a5a-87d3-08d5b1c65c1d 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Jyri Sarha , dri-devel@lists.freedesktop.org, 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 an #ifdef and the .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/panel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 6d99d4a3beb3..f43d77b5ed20 100644 --- a/drivers/gpu/drm/bridge/panel.c +++ b/drivers/gpu/drm/bridge/panel.c @@ -169,10 +169,8 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel, panel_bridge->connector_type = connector_type; panel_bridge->panel = panel; + panel_bridge->bridge.odev = panel->dev; panel_bridge->bridge.funcs = &panel_bridge_bridge_funcs; -#ifdef CONFIG_OF - panel_bridge->bridge.of_node = panel->dev->of_node; -#endif drm_bridge_add(&panel_bridge->bridge);