Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1871793imm; Fri, 6 Jul 2018 08:00:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcCKeo//Qq4R/iJ/yNWQf4L87rVShsUMWhVaBGapAi4T2PMveCNLlrB2cvaPdmrS/28yh8F X-Received: by 2002:a63:f:: with SMTP id 15-v6mr3496560pga.430.1530889207832; Fri, 06 Jul 2018 08:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530889207; cv=none; d=google.com; s=arc-20160816; b=xrlUoyWiqo0cdC7mCH2ffDITRCq7mvutpRMmiAf5F22iVTowEf2z13uR+8rGDKOsPx Lyw/SeZ9j9AcBBHNsDax0pyuIMf4Bo8Ua/D3MJpbHOYWeeozK0vs++7V9alCr52XQ3O7 tKkhGRvfpLul48gBK8TtMcKTZ7e9qp9XbnCwBF8K5g+24V/bqAbu3jPOhCs758g0ZN9R VykVXq/VdeedfcXZ3OQKgEG+ukgHkrn5aDZgvdZ1xl6HwUK+TkNjUJP+jxHsprtGU9As Dqe3ID6tgy1eBMSfC30g6DsJ55Twoaup3yrgFAPNCoK5ZYhPven2MUZgqdBChAf6tpvU vfkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:content-transfer-encoding :content-disposition:mime-version:subject:cc:to:from:references :in-reply-to:dkim-signature:arc-authentication-results; bh=Uxa7tPwYMk//hwkIEDwoSk7WCz7qnbNyiAYVieohrmc=; b=R0ziXgQLn5yRZh5ViQeMMuh+esBc13GMFD7E4/UAnV6tFj0Ys4wAl5KUjk9yZRFw31 XZb+yRUgTxga6b73Dlf0vlEHZXoMWKmjYxOxqQz+dZnQxMZlqVIVScdVG/pBlvoY67IJ Pq+n0p5jHCJL5r63pjfkTD1LaBB2kbYtyjETnu3I1nuflKOrHRFylrMTvrn8W1q8sngF mh3XDmvzvru5m6HoJMH8QtfrTrzqos+FDBpqgRTPh/ePUCzJcp3ATIt5fa9W/L6XcPjh 7SXLo+EmCWpOn5QBgd9gcEvqDR7JpNjwb1fB6xp0ioX4nzD8UWXeCP7Rz42q9U1M44qI EKog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=DUfHUQLa; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 66-v6si7736497pge.159.2018.07.06.07.59.53; Fri, 06 Jul 2018 08:00:07 -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=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=DUfHUQLa; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933352AbeGFO67 (ORCPT + 99 others); Fri, 6 Jul 2018 10:58:59 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:44222 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932769AbeGFO6z (ORCPT ); Fri, 6 Jul 2018 10:58:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References: In-Reply-To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Uxa7tPwYMk//hwkIEDwoSk7WCz7qnbNyiAYVieohrmc=; b=DUfHUQLaMJAOKX2DYl44+2gnxk 3Kn4Ydag4o6xc1zhxjKTv11mGnlt24mtTeLs2cyWiEIWmuJeCOXhiXkw30tBNutbq9RT+7ghKJPDQ QBGSGR7pG5deQHgTKn1xO3/eP1rwwYhS5e9SXEa7IctqNXRBzaDtrY6SkL6EDgpu/SIg=; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:36526 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1fbSC9-0006Nh-Tc; Fri, 06 Jul 2018 15:58:50 +0100 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1fbSC9-00076U-8U; Fri, 06 Jul 2018 15:58:49 +0100 In-Reply-To: <20180706145748.GA17271@n2100.armlinux.org.uk> References: <20180706145748.GA17271@n2100.armlinux.org.uk> From: Russell King To: Peter Rosin Cc: Mark Rutland , devicetree@vger.kernel.org, Alexandre Belloni , Andrzej Hajda , David Airlie , Jyri Sarha , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , Daniel Vetter , linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/6] drm/i2c: tda998x: find the drm_device via the drm_connector MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Message-Id: Date: Fri, 06 Jul 2018 15:58:49 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Rosin 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 Signed-off-by: Russell King --- 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 eb9916bd84a4..4061e293e671 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -753,7 +753,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.7.4