From patchwork Wed May 23 09:31:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10420807 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 32DDF6016C for ; Wed, 23 May 2018 09:40:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 203D728C7D for ; Wed, 23 May 2018 09:40:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 147BB28DDC; Wed, 23 May 2018 09:40:49 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 857AE28C7D for ; Wed, 23 May 2018 09:40:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/CFOxpjqvQyYlfcxBjRyn3AsYy1sn8QWm4IS9CU+/dU=; b=T2ofMGTO1vDfTO SN597qVOxOK3HVea3frJvORNWh05u+O9W3Pj8pXvlaNmZLQOlAY00DNDQa7KDDM1844quKp3LJ3En UxdJ0Lsfivfz/AS2tv1t5TirwGgtrIB+efyWSslENm4+jUSg9oC5lYdK8Wh3YEZwMIvCWdKhhsc/w vBY/qPlTnjnEc9bNz90qU1PFJy5bodbFrnFIBjhlzTmwc+tEgMon57yMPQsgDQYT9LPPdI3hr0S4K sXlXjmP+vsQv0CLSkKNJ2jJmVxDwutKeNFcxkzNywOuNgoxC38WRizJYQ2vWznHewMyv8QUIK1QfA oxXLTS9iMaPR/hl537ww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLQGC-0002Ge-Tx; Wed, 23 May 2018 09:40:44 +0000 Received: from mail-he1eur01on0730.outbound.protection.outlook.com ([2a01:111:f400:fe1e::730] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLQ8b-0004hd-E7 for linux-arm-kernel@lists.infradead.org; Wed, 23 May 2018 09:33:21 +0000 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 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 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?wo7KIWS6YYNm21ppghwKXiBh3UuVKeidbiANkuXXXCDNPGILs7VXL7K/75ZY?= =?us-ascii?Q?9JxdWEz/ESJkGxuG9xnVmYYT7FfqBVQcQVj+KsasR/PYe4t4IrOTsCQ1fQqG?= =?us-ascii?Q?mnYpG7VqbDJ2/wCU5yDnQ+XKrE2Rmxw472Igv1o92jDfqZvGNJMFx+/YkAEs?= =?us-ascii?Q?F22nKOtoy4klYNG+UBKGpVIo8F353n/fiUD7MbM4Zd60J8luoPf/aSHZwJST?= =?us-ascii?Q?ZXDzCoQu31fuORSup8mGyU8gVN8F+cxhEc5AQYMIsPQoXPeMX4Ot3BrNKJes?= =?us-ascii?Q?+I83Qu2iwSb4ZU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us-ascii?Q?bn7W5fRAOJjmLmSedJ6Cuy1o33lg=3D?= X-Microsoft-Antispam-Message-Info: PXf9mHejMc23jVMrUxMfyhVnFV/6+UqqWKzeFgpy/na2D3vRmx6UYm5VLl/sO/ho2PddjJA4+lWU7/oQkpEu180IErMk65CwRKHcL+itAG7uRml8RnEKe35g6qjtxlPX0oDlniWtYdFW+RLmYQsRLiPkFSL98Br8IH4thSpGxvnA0K/sWy0loJjvOnuCLCxR X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2782; 6:lW361n5I8KuHmaSS1YOvrWWhsmYO9TW3IEwxzb4szBetG/elHWy/TACYr3y/9NvB07Y8e+PvIJazeeJbgyMo21Bxqq97FEyWkTUIagfWOq9gnt8NmFeqYViPyM/Lp60xnnGNCr49Vqg2EoBEOOqLMiqB6Ng1Y+MzwCKMpDyXndMgu2WhhcNjfBXV77LrHJtzMAhoWK2NKuy9SP550Z/zIU/P/hGUZFodf0NbL7xAjjAD691F1Mrw2KF4RG7xzfwjDqQOLUYw0M0d76HOhx5BxeT9GKJm97uWNeNQ0v7PuNO2iw36g8BNjUS5FvvWyO5ZoeCMgcdWw4mnV+Sli8Ne9tdZ3/UP77FDqXCDx+WkwkttIMs2uRQo7bXjR9+Igs1qEpJHQiehaP9fiuzqQyMDnzmu6p5o9WeLwriwBJpmYAnqj2sqESDdVbRGloZJkUa1R5bAUGO2/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180523_023253_656368_DFC1D7B0 X-CRM114-Status: GOOD ( 12.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Alexandre Belloni , Andrzej Hajda , David Airlie , Jyri Sarha , dri-devel@lists.freedesktop.org, Russell King , Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , Daniel Vetter , Peter Rosin , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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. 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);