Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp610829imm; Wed, 23 May 2018 02:35:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo3pBbg2nE8YTLgBhtw9Zq6VPoZZpa6L6sKaOtwNNv4CzBRMa13hUW6IM0FaiqiFej2ee7a X-Received: by 2002:a63:7208:: with SMTP id n8-v6mr1709194pgc.420.1527068104703; Wed, 23 May 2018 02:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527068104; cv=none; d=google.com; s=arc-20160816; b=Izj+aJDb30/div8k+tOBjXDmT2VUMfdZGrButarWtD3S6rXKF+gUZmDrH4xB4TekJe lQBW9sytSqh1TjEUASDdTpWOOu0pWwlVD1DJ9p6ZXO2tTpiVKPYKvb+woFQCP1HXGlK/ soYDvEVyvSVajWkR488v5vh3hI3OxTKDIsCoH9OE23Ei8R0opvvNxQdyPGo50XQF3XH/ iSZeXuOe0938d4eN4PZHlkdk6uWaxPUv7b7F91X5QUFihO8P6v2ZTrqO58/3yj9yYC7G ZbZai9KY+/MHQFeob0pgMhGCr5NtonEJ7Ikal/zwH60xl78rooZgX0viaSuQp39i9hzM BMUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=OeBfQU7XgehbW7GkAylu7YFY2ZR03eL2Furkpy/7O/Y=; b=jgvRrUqp2xbCel+9vOyFVScUOBEAAEu1n0Hedw70ReR1w6cMRQ8ujpwxXBZlChIBbG hVrrA07V2AWgIOiaYxg7a0fYf7SakfKYy22osak0ouv1aqIu2GatW/0sS/26yy/edgUo ZHWszHIzgSdfxrhXOotvB++uiovQPCDjERuDibsdR+Vc7Zf/0GBrZcrhHe7yAIEBjMZq j8ChQqYdU4A2UM1HiS7SzTuaXrkXYP/cLC/N9y4umydInA4eXKUq9O9Ibv9JS8w/UiLb Pum8aSXC8DOWUEQ/zhOYPadSjSb5GZka+aD74+2MXCg/2MS8x+i+z/P6+TTgtu9Yv84m gMYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=sHUJrd2t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z80-v6si18612559pfi.7.2018.05.23.02.34.47; Wed, 23 May 2018 02:35:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=sHUJrd2t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932276AbeEWJdu (ORCPT + 99 others); Wed, 23 May 2018 05:33:50 -0400 Received: from mail-he1eur01on0139.outbound.protection.outlook.com ([104.47.0.139]:55616 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932163AbeEWJb5 (ORCPT ); Wed, 23 May 2018 05:31:57 -0400 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:X-MS-Exchange-SenderADCheck; bh=OeBfQU7XgehbW7GkAylu7YFY2ZR03eL2Furkpy/7O/Y=; b=sHUJrd2tZM65PdSIl94/GR0at5pgRqKmZYyG+Kbvdw0J1PQcVtxCBc7LGz9qF/rhdcBm0wgx7NmRSy1ONJ/D71whT3awtP3QI5MEpDOqbUaxNoGQ7HMFVhxD33kExUMILoNsbJvPwc3njHXRFytfWwGky+9LQG1UX04Dy/Ohn8g= 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.776.16; Wed, 23 May 2018 09:31:50 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Cc: Peter Rosin , David Airlie , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Boris Brezillon , Russell King , Laurent Pinchart , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jyri Sarha , Daniel Vetter , Andrzej Hajda , Jacopo Mondi Subject: [PATCH v5 4/7] drm/i2c: tda998x: find the drm_device via the drm_connector Date: Wed, 23 May 2018 11:31:19 +0200 Message-Id: <20180523093122.27859-5-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180523093122.27859-1-peda@axentia.se> References: <20180523093122.27859-1-peda@axentia.se> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR0102CA0046.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::23) 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:2Er9k/pyAihIQdhBFmV3YKyd9w2RSY+8di16/BPi781Yr9WRLdCLsl6T3HB+/d6wUx5A9plQQ3sMGOz4df51AyKf5sRARgiE0m57u/I2UDjNP8rFUDXZF2RJgQjF0ESwO7xF8Z/Prk/ojKOQTlMJIwW6Ccyx+aLSE+qCkqLrKgdHrc3H8SDgvvmHenrAfHH+BT/Mk2r+tGxVUCe0b+5a7M5eTjc43LVso+uJi+tdg6XFNPI3UB4R+T2cyab8rGYF;25:FsPiNfNXp7gfoJ3gKNIAv016ZQHcSbgPLhQ+VbNmNVla5RU3Yggo9Dunre+53S/HXpGGS0iEDqeVf5lX5s/RHV0F5Zi3WmRtxWX2RzkhP/XCQW3MGE0YiNsRiLdhvHUMJXjPlLqINNBucEXELrwMtebjbbZYWFcTuyldjRzdA5ReyfJSiCgtAZerLj/QxbwOv3PV9yRFmoujz04x22TfjgEELfbVEVEjexUVcW0ppRlQvVwvrCH9DoDEL+ukGt2lnkDauQx91tC6GPzNA9z9Z3mj/FozsXtw5I8zSQlR6ER3Zc0QFubdsa7/oUwfYGvhrPBBW33hh28CtF19AAobaQ==;31:CsgtDu9vpRjioaOIKFOaFWHayYzVJMi8fXkVS1AfVcxq3PhF6LWPl1q8yGZqAih0azxskGi9LI4ab8lMEA8VlZO0Eawn9rcIpyEJaLUDN7h0vSRlBglRb53K2+KWw9ZmXewR5stozMqVAkc/atsgf6f48xaU0ewtKFoihYD2Imrz2ugu+beBCiVcoAdMgkJu3s4LQCkWng9COwoQot5r5Uj7eRUA5bWZPRZK255dzWg= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2782: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(2016111802025)(20161123560045)(20161123562045)(6072148)(6043046)(201708071742011)(7699016);SRVR:VI1PR0202MB2782;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2782;4:eW735mbI1AH+pTMLMo3Bke9rRYPfiyXhdDd0a5V8gYhf14wVQs52GAaoThOkVUng9FU5AgCl2Ed2cXIJAXQ4ZwiyEbGisOtc7Kulm0SlCD+sSyuBpJSFTSuCObP+GcVehS0zQGMaTYK/USLCFN4xevBLjzZpKNmqsqCijcBz2XdXkdEqSB0Eugdm3RqCJZ/xs15Kp1+a6aGSwvKDs3ldqNeXqzcCHxyRqO7ybjL+V0QpQpnxLmqvsmRBe0FJQw6orBeYLc9KZqEhPM8pq0JzUw== X-Forefront-PRVS: 06818431B9 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(376002)(346002)(39840400004)(366004)(189003)(199004)(486006)(68736007)(956004)(476003)(3846002)(97736004)(6116002)(478600001)(2616005)(5660300001)(6916009)(6666003)(53936002)(2906002)(4326008)(11346002)(6512007)(446003)(1076002)(36756003)(575784001)(86362001)(16586007)(7736002)(59450400001)(76176011)(52116002)(51416003)(25786009)(7416002)(305945005)(8936002)(6486002)(2361001)(48376002)(106356001)(66066001)(74482002)(50466002)(47776003)(26005)(316002)(6506007)(81156014)(105586002)(16526019)(186003)(386003)(8676002)(81166006)(50226002)(2351001)(54906003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0202MB2782;H:orc.pedanet;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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:SQlPKJh4q0408FGKzGc28jEI5a0ohjs3GMYWyMB?= =?us-ascii?Q?gr3bhAMrZAUsowiEMIkkLjXc+iYZF70C6EtUOgVM5ng6gyGwmX2hpIOTg9Yt?= =?us-ascii?Q?UpZCzb6GjEmWiqlF192oj1w/o4oDGVjBfYLj/kLQYA5x6njVjIO8mSrU0jAV?= =?us-ascii?Q?wo7KIWS6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zmu6p5o9WeLwriwBJpmYAnqj2sqESDdVbRGloZJkUa1R5bAUGO2/P3BBogb9Z255g==;5:mHCSFichi+frJ0vvP8daTG/nJhtox7CIupsNp6L011WvV8z9pVoJJjRZKcPHufatMAkTheZlBtACjWhp2eLJvFhgsRfmSBsofugTePrFYJMXvyt+rzqry1akPk8ySz6VNANeWxKJN2uA9M4NFcBtNNpthjVL+Nr8CspXQAp5Wxk=;24:hugkfVnhCtHRUOrHEvw24HKCIf8j0KKbWq/0L/l+rEOGi+cQ6roMvLmlKC3jEUhYUUgiGFGO9MPcmRLMhMc85D6YuQSKBOE8Q9/cqGuwBfc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2782;7:2sGfvaJnQMeiL28zACzEDqbt3+ZwZlRIrE9kUrHvQh1ROULFDbdXY02lkRz9NGJw5hl7q0kAX+fh4GebOt4MGAlU65Vat7tBLTA2uWCz1ueiNAURX6UMhbaHxt7e7Wn/SvHhNP2VnYXv7b2VJfQWjhLinKlOrUuDPnBrVh/779Jg4WvYkNtuPst8gVBRKuNugDiuVT97Bk8kY7/82GebNbrBZIsHOdlijN16k85pqzjImzrSND92Z0OuokrP+OYj X-MS-Office365-Filtering-Correlation-Id: 84f90d9b-fd94-4810-8b85-08d5c09003d8 X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2018 09:31:50.3470 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 84f90d9b-fd94-4810-8b85-08d5c09003d8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2782 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This prepares for being a drm_bridge which will not register the encoder. That makes the connector the better choice. Reviewed-by: Laurent Pinchart Signed-off-by: Peter Rosin --- 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 421c8a72369e..933d309d2e0f 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); -- 2.11.0