From patchwork Thu Apr 19 16:27:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10351941 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 9C81760365 for ; Fri, 20 Apr 2018 07:33:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8917227852 for ; Fri, 20 Apr 2018 07:33:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D62327EED; Fri, 20 Apr 2018 07:33:00 +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 1633627852 for ; Fri, 20 Apr 2018 07:33:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 316A76E1F4; Fri, 20 Apr 2018 07:32:07 +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-he1eur01on0136.outbound.protection.outlook.com [104.47.0.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 80BBF6E64F for ; Thu, 19 Apr 2018 16:28:37 +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=GKLFt7r/x8S6ZYAjGFsg6R7FGQphXGYMjzZuibXV4gs=; b=pgwzK5ayWZZcePlfNc8XJhqXqZ2FNURHZQAWr/CMkqqtkArohrs6gUnIdD9TmNZyFi5xG7DqX7BqXKB1L2ooo6XtI2SVIymUl4pTBs44btYThM/2U5IerRWB/fqq3k+xiKcD/En9+QRMtoXDCQmtomgT7qSMadEBXVPiec9H94Y= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0202MB2784.eurprd02.prod.outlook.com (2603:10a6:800:db::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 19 Apr 2018 16:28:33 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v3 5/7] drm/i2c: tda998x: find the drm_device via the drm_connector Date: Thu, 19 Apr 2018 18:27:49 +0200 Message-Id: <20180419162751.25223-6-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180419162751.25223-1-peda@axentia.se> References: <20180419162751.25223-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR0102CA0072.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::49) To VI1PR0202MB2784.eurprd02.prod.outlook.com (2603:10a6:800:db::9) 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:VI1PR0202MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 3:OsNsWW+hEPQcfCXJhQHj5BJLjxoiv/BLH9pkI9V3aXICbhmTWreQWGv5ruvYdLeM32QdtVR47qWcHd/zFZTgxaqXKXf2wdH5lxiKY0EHnO8peUr/6VO3oeVlViQwm9YW29ASv+P+ND+llTXA1VcHShFxt0O7v+sUGWcm8b3RjQj7jzGaceHoOUM8Rsa3ufeQRIcy+c2gVXIvJtaJH5z1Fi0CANGxTjPPzUvihAf8kbz+SayNXSWFSgCeAe2DnfTs; 25:nxyA0eSXANbXv3id3UOh8/aYFF5hvTZSN6I6Da99vS2MH96Rp9QQeaPyHG/iuZOxnO9D81/iZzRaC3sKgxJla6xDndzhJk0EJmSvJg/0og//prN7SgcennDNrEcfwvP83UI3xPa9ghm9I2j3XsldW9NOmr4WlpxYpSV+JChaL2WPooMbiL+49M+rAKHKAFzsbE1eFsjgHofHjhcbHvpXN2H5MZ5B4/cOOhhdwRh7rv1qJUbeyz6xPeqrQ+atWeeFvHgIjWfvMXP9DAcESB3OvaWhkkvl0HJnN11bGY9iF4xBTvr5OySbcaGt1ZEcBM7DoAa/q9oNsqSZf8DN/wKgPA==; 31:kOZmublG4ATmT1RevkoLpRhx2AXiBDWgIcVIFua49ZHVuQNDriPnW1FaMcY9HzyrvLHc5qGhJ0pVg9GmyC+/tnKjEepJYDA6a/ePbTNbRK948+fhfSnkuA2gk5BsgsR6WouGWTtHFY53hrGMGfihKnAa7nvvKcq5vB6UaW4LAzq5Dt3bhVnJQsYc0klT/Nd+Jzs9lGB5jYEr3AN6U4dlWqkLa430B+nIun6UijkPOCM= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2784: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231232)(944501327)(52105095)(10201501046)(3002001)(6041310)(20161123558120)(20161123562045)(2016111802025)(20161123564045)(20161123560045)(6072148)(6043046)(201708071742011); SRVR:VI1PR0202MB2784; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 4:9ATgtmFMgIvifoKrd4WPCLHUb07TKiplsjEOUGKkJVsXsOFmMGmWXgbRWTOfurqd+Ap9b+t8nSU3xtrSiztgTok2YL/2Cghdf34Zs2WekebIgZuES76lf5ASAK+7tkgIFVOvElWlZPI+aFlmO+OxtPeNfbSRVduFTli9L+52kOT66FrUUEy0diVLbTMbSQ5DsdfV9WbIN0qqFxurkpS8nMnJssC9H+MKV9h3Schj4urqnnRkvWL/oeF29jckRocR8LVjUWQKHMPXQewTkNT4iw== X-Forefront-PRVS: 0647963F84 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(396003)(346002)(366004)(376002)(39380400002)(39840400004)(26005)(86362001)(50466002)(50226002)(8936002)(6506007)(386003)(76176011)(47776003)(1076002)(59450400001)(2351001)(66066001)(6116002)(3846002)(2361001)(16526019)(305945005)(186003)(74482002)(11346002)(956004)(2906002)(446003)(6512007)(52116002)(53936002)(6916009)(6486002)(476003)(478600001)(316002)(8676002)(4326008)(2616005)(36756003)(7416002)(7736002)(6666003)(48376002)(16586007)(5660300001)(54906003)(25786009)(81166006)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2784; H:orc.pedanet; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0202MB2784; 23:7vS/Rjt4+bznOEEG9Ul+XeLPMK5Zx5g1Yy4OKE3?= =?us-ascii?Q?JlGCIfRrk4BAbg9qYYlkhuTKD5ZndUZbK2BCGQZKs/YdUbi7LfdGZi2EdIaU?= =?us-ascii?Q?zMcq5/da+hRtKfm2OQieGy6xJ6y/M1EZbqUj5ZuKIfhTKclTOv2TOO1kQK2y?= =?us-ascii?Q?tkKT2ej9TcayBgVW5hU6JDr1q8ID9AfHIoyht7gYgyp+cxS8QtpVXwNA3TQB?= =?us-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9GyrT53bsXZbH3FmW+y8GpDxpjEI/VDrc1+IIekfpXgJIlBxi58= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 7:fxL2kF9ag2q1NwSzlwtTdCcMKJC5o4x78U7lunBLz5nmU/ERYcU1TqUwcTfJ46h8mnWaUyyYKFGNv18BaaAG01B41VXJHolTokNfdY6+d+7vtf5Usi+Z/nIE+DilWI3TMjcDyLYpAY4moupL7xYCW3/bbwmsf+bvLk1StuqHnJs27n4DGiZaqKDhQQvnXIWJ5sS54n9EO3azwoI4OPASdnX8COZKBCtltYgexLQPyyQciFjwLGLw0sd6IHgfL0gy X-MS-Office365-Filtering-Correlation-Id: 148c0c8c-b3d3-442b-6e0b-08d5a61298cf X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2018 16:28:33.4427 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 148c0c8c-b3d3-442b-6e0b-08d5a61298cf X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2784 X-Mailman-Approved-At: Fri, 20 Apr 2018 07:31:50 +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: Mark Rutland , Boris Brezillon , Alexandre Belloni , Jacopo Mondi , devicetree@vger.kernel.org, David Airlie , Nicolas Ferre , dri-devel@lists.freedesktop.org, Russell King , Rob Herring , Laurent Pinchart , Daniel Vetter , Peter Rosin , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This prepares for being a drm_bridge which will not register the encoder. That makes the connector the better choice. Signed-off-by: Peter Rosin Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index cd3f0873bbdd..8f6e013f2b87 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -630,7 +630,7 @@ static void tda998x_detect_work(struct work_struct *work) { struct tda998x_priv *priv = container_of(work, struct tda998x_priv, detect_work); - struct drm_device *dev = priv->encoder.dev; + struct drm_device *dev = priv->connector.dev; if (dev) drm_kms_helper_hotplug_event(dev);