From patchwork Fri May 4 13:51:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10382339 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 6D0BD60159 for ; Sat, 5 May 2018 20:11:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BB5B28917 for ; Sat, 5 May 2018 20:11:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C4E128A3B; Sat, 5 May 2018 20:11:40 +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 310C428917 for ; Sat, 5 May 2018 20:11:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 693906E2CD; Sat, 5 May 2018 20:08:22 +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-eopbgr20121.outbound.protection.outlook.com [40.107.2.121]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8A9B26E8AB for ; Fri, 4 May 2018 13:52:49 +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=tM1Z4dQcZndUQ6mPQ5F1sJya5PQ0qANlFMNcBbvj0AM=; b=A5Q6CFHnUIegAZiOc5lycHJzz8Xoyzj/4wv4cjiA9FJtznVb1RIafxWs+Bg1mVzOVEnaCmDiOEL3ECWW34rwD2WqgbJuDVy/OOFMxrl9G234YqDhMS3RCUFp3ErixfJchyskKXHT0XoDka/HhwvhvBHWtgJqD1gp46KuRipMHjU= 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:52:46 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 04/26] drm/bridge: analogix-anx78xx: provide an owner .odev device Date: Fri, 4 May 2018 15:51:50 +0200 Message-Id: <20180504135212.26977-5-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:R+HJ5hVomdaDNU4WgooCjPZ7wVparFsF2Y2RuxLFaOWTXBNYA5kWVfkTsJn0lNXNEbki0WPRejHAmWw7Bqs6kVxNnhNHW1OIJfeT/YVE/AA3xB4SlhmWRa+yaf7t/0WmjkpkzO4J/atyf0EClg/tvW9hSXjCHs4a6+zBzbzPVW7+UJt3lMVaCNQ1oGghOf5gtJptFBn0N2d9foSa4cTwhiaLc8+fG+HCsaUtYt8aSqThOZXCk3Y8sOzSemzpYuoz; 25:wM2mzY7a3P/eps8Wtb3318d4hjaI+YmqOse/QS+YuZHJ7lP6YH5OGZw2/Nwpduzu/B3Le+1b9v701qMH3P99lQIyDWh2ipzIyffV29hfd9J+fs9gJSfSqIZ1aM5ItIPTeKDS9lCUrX6sxEL7dFGh6wM2hfZ6mbHPgL7XOg3jOYVb+Jpi/4qJeQyRz6EPsM0nHz0/xTuIYpbT9oQk7KoxiBsSKAqZB5N6HEsojA/xDr/z6P5aveED49uKTREO1tSfxjSUmgNAWEafBd0ztLX9r8Mya96meHkQrbKCfbh2lfVYarE8cs4RYHOerjJohUlTiV7WShOGfIQWLxdPOBqdFw==; 31:TfKSqdP9tAFK0f/sjbcw/Bg/+Hme8eVZGWLgL3EPv0A3GN0yj+BiHWToKyKtJJPpdf7/UQaP9uVj+GBDcmPPxwlu/iDS7xtaqD/ZVGZdklQ7J7VqvQQbffBhDTI3VcgFm7AlU18jyDisKTXQgqH/BsAioO6aS9yKoV5NS8g+XU5kxKDZmMNuszSh8Ojf9NM9o/kqM+GXXSaUC5LRP2SP+4B2IAchtpurvHEJA/qr5EU= 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:QkFfbgzM2N8j8Dy8xkbufEtWCZvkEqtyVE6JRaOupy4w9GNZUgDrzjdoMGa8sooDEj7ZMEZE5RK8QDdN2LAcVp0Ihkq93ls3v5CcDN6XSiQB26mOQm4ZoUmrWwS++o/Hc4ylhMEygAo9F2fnTUXEKaqW/pL7SZ3+WXRmi+z3Da31NXNCvho6e5R4mtv+Fd0H/+02n3ov8dZL91BDhUgd2TT0zrqqsjNFG6DKmgRaVJQWVg5T0l3Uk2epi36gLlhOWnw92AVf3WCI6kzmMY6Q0A== 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)(59450400001)(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:k2nQ1AHZgHwKwZs8Jfup8s+0ZVNkjirjKYAhdJE?= =?us-ascii?Q?3vi45GjXn/OIDMtF68sixS6t8eo3Sru4m03/catnuJy0DVuLjAVmN6x3DzKM?= =?us-ascii?Q?jn7N3frcZuzzPkSp3KoxIKFtCUgB6tHfYxQfVz6ItZKsdD1iT2xGtsI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AZNw7mUIo20PeYOArdQWHbSPhTcIXIYm2ym?= =?us-ascii?Q?DXK700Ii9mCyh7v6AbSxG/afuH/sXDEItP1n0p3C+YKYPjNmEB11Gf7Py/dj?= =?us-ascii?Q?jAwO1fpABoeagJxLn940+lhxExrDGNVbNZZRHYxSwEdCSnR7WJsqqbglr73D?= =?us-ascii?Q?E1aWW2IgxIrZJ8Twlh762B3bx1prP38vlVnFXJloI0q8fglZGoGoPIxxlTE6?= =?us-ascii?Q?f7TP04h+XPoywzCaCBCHDPPLHNW1RSEOOF8uyvKc1/sYlSCNiOJFCImtKwdS?= =?us-ascii?Q?1D7lp5t0wAglCv+Hk1sSuddZTHJWN2Iwi9ge1B8tNSgvyzFCqopUIBs6PyFn?= =?us-ascii?Q?zEHuiWA=3D=3D?= X-Microsoft-Antispam-Message-Info: z076TYNMloBms3LGUyHkLnd8VNqHCjqCL+GqkRzk8Qn5wgs35tPnSOUVUps8fdjRf9SFs+yV8BQixx31qIDcG7EFkEYJ4mwGYmlrw6gAYPrWmi8r1oRhVoHbx0eY9vXKQWQFRoiz4DwT6NbxPjUwitq8NoDfZ3+tIzDv6TmmCuXIn0/Un3LgR8l82XBpUX5X X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 6:XruOVeRBmI55qzvBiG076KScqJ5lXmln/dN6DeFQV5PNBSMNO5ahM/QrmFASWM9kSkkGLihmU0RUHSAx6btUDKomKQDqY9XpmP3agMuP+EURrA72Y2I8LaL/KIScbFxupSmGlthMdtgXs4W46sVe0G71T+nn1YWNbyloi77eLy2W35+nPHWRsWJEqTNIVip9dGrRCgNtGQg/FYe2LWg0GXwHageDc/05j/roz2tS6KZQXDfLUY1KPXnSJBf4jSY/SKKOLPlZRMzK+dOOnUltQsA6xNpPQ+Z2ZGd1dc7yVx5Bx+kQ4Nn2jB9hvhxdWviJxBY52SfIMF3L3akDHV7OhlQWz/qndA1QEBTMOX2UAu9FlrdHRkeqmdIs0y18zzRzIikx3CbRe2K0ksJAjyvfL2iDWyfu/zhnNg0SqB/FmKTwkitjwu3cYhL6II+LCPlx1gM5qNZeCHLG4CNBHIwxPg==; 5:l57eWXgO9Oz/UaK/Y1mwtTfrgkRTLIykwnGXU9PuVP/9WzSeVfWj0rKrq76acVW6hAJCvkiz9a2gRgtPbFFitg6rm/DdcUtb+7fGABa9MeOyJ8+gIIcpT6K+QR3OgfgpvBSRzW5/zPkqo7Y+Anotot6BxABlCzD8iA8NbzcaNtY=; 24:aJTYVqBzWd/UrvH7lXtiFSnS9uO5FxIsU8hVvzusTmCF0GEZUxdlIpo3mJ/J6J+mCOjIM5upCN/RX+JAJPKdm3OOBMd9mZ+0qxzyQhUk3WI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 7:fqPm8sDOPs+Eae9a8ICBSzEI2zPs8bOqvsrc8di75hO8scE64kfisdHytqohozkmhEWfpjBXrg6BRF87sbj+5Uekt/r+H4kwADgb9SlI9uCAq57jbzfTzNVtOe4+42NjdGg/JqVj9uvSxmGt9TEpqbfBwzANX9DPPKp+/bmZu6i68ype8BHsaWUnmmZZoYxpqEIXu9QSvLOOhT+lwjYSopCk3KzUc5dPyLcNHalPHqjTUo5F9lMSEVarqhcSrNqb X-MS-Office365-Filtering-Correlation-Id: ab3a20ab-302e-4924-c62c-08d5b1c6515b X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2018 13:52:46.2837 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ab3a20ab-302e-4924-c62c-08d5b1c6515b 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 #if and the .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/analogix-anx78xx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix-anx78xx.c index b49043866be6..1d6620aedbdb 100644 --- a/drivers/gpu/drm/bridge/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix-anx78xx.c @@ -1332,10 +1332,6 @@ static int anx78xx_i2c_probe(struct i2c_client *client, mutex_init(&anx78xx->lock); -#if IS_ENABLED(CONFIG_OF) - anx78xx->bridge.of_node = client->dev.of_node; -#endif - anx78xx->client = client; i2c_set_clientdata(client, anx78xx); @@ -1433,6 +1429,7 @@ static int anx78xx_i2c_probe(struct i2c_client *client, goto err_poweroff; } + anx78xx->bridge.odev = &client->dev; anx78xx->bridge.funcs = &anx78xx_bridge_funcs; drm_bridge_add(&anx78xx->bridge);