Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3588456ybd; Tue, 25 Jun 2019 05:19:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4BNQ74PBog5YU5mGtdW0LyFOofUaoaK5xB/82QWpPAjf2t/4kBlwtypDgesWmh8mn/PC2 X-Received: by 2002:a63:4d05:: with SMTP id a5mr36103621pgb.19.1561465160816; Tue, 25 Jun 2019 05:19:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561465160; cv=none; d=google.com; s=arc-20160816; b=lo79SyAckX6ibuoCoKjg0yyl6hLict2wtuul9SmnYClNs/lTnJyouJzBUd/ZgG6EV2 fWt+i9ezFLddv1Qo3mJGl3ecWDX2DQtP1dtTMtXUKF4N0chjvYGL+gprkxK0Z3a9Ji7H mgORcStz4MSY6HKIoZaw4ro4nkMig+0/D1XDFQVkXVedPl+5NSwCAJguHDJK2eE5iCL1 DgaN7p7xT6L6o8FPr3qxaPi+AxAEStI4/xOzJY7Qe7i1C7djfDa2bXxsHe61TULOUpOV OylbeAV7tSnzTWxdCr2Vwp4NL/2ubGUSMy/bUGNHR9v/pDwApeNaRC/yA/da70OhxzVG IoRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=N3ij5I+vwuVfB1piCT+dMj59t0RXVZQioVOrv8FcxOU=; b=k1bXsgo/1rCRWo8JrhZfDkANkSRaQkbeI55h2EwgReusK64W3DUTGYm4nvy9ljXJhH 60yHS79luS+tdSFrI2UO36CbVCkXIcH0VWDs82yy+5aqd+ZjMUbhJV5KZMq4a5oV//Zi i2M4zRvm+9oI9/o8XYt8zRBSGE+j/yVx9GyogZwHUJPf0z4pqkwJaew3KFayaob+swEL ZxhDIU4hNiNzNLIE+C+AnKVsBx/imlOgqbyUWZSWPOj8OEt8upoVNugj6UtIuak05ycC C/bagJ6ALRo6e7bNZVCaqPNCERhmVb9VbCHJwOL3Op/1YOf0UMjhYnBoOpQHTdPGBwb6 Tr7A== ARC-Authentication-Results: i=1; mx.google.com; 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d132si14301395pfd.102.2019.06.25.05.19.04; Tue, 25 Jun 2019 05:19:20 -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; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731863AbfFYKY6 (ORCPT + 99 others); Tue, 25 Jun 2019 06:24:58 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56404 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbfFYKYv (ORCPT ); Tue, 25 Jun 2019 06:24:51 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id 5B0F2288E52 From: Andrzej Pietrasiewicz To: dri-devel@lists.freedesktop.org Cc: kernel@collabora.com, m.szyprowski@samsung.com, Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Kukjin Kim , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 2/2] drm/exynos: Provide ddc symlink in connector's sysfs Date: Tue, 25 Jun 2019 12:24:41 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: <20190625101655.n246vbwtupb4eoyz@shell.armlinux.org.uk> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch to using the ddc provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/exynos/exynos_hdmi.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 894a99793633..6816e37861b7 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -126,7 +126,6 @@ struct hdmi_context { void __iomem *regs; void __iomem *regs_hdmiphy; struct i2c_client *hdmiphy_port; - struct i2c_adapter *ddc_adpt; struct gpio_desc *hpd_gpio; int irq; struct regmap *pmureg; @@ -872,10 +871,10 @@ static int hdmi_get_modes(struct drm_connector *connector) struct edid *edid; int ret; - if (!hdata->ddc_adpt) + if (!connector->ddc) return -ENODEV; - edid = drm_get_edid(connector, hdata->ddc_adpt); + edid = drm_get_edid(connector, connector->ddc); if (!edid) return -ENODEV; @@ -1893,7 +1892,7 @@ static int hdmi_get_ddc_adapter(struct hdmi_context *hdata) return -EPROBE_DEFER; } - hdata->ddc_adpt = adpt; + hdata->connector.ddc = adpt; return 0; } @@ -2045,7 +2044,7 @@ static int hdmi_probe(struct platform_device *pdev) if (hdata->regs_hdmiphy) iounmap(hdata->regs_hdmiphy); err_ddc: - put_device(&hdata->ddc_adpt->dev); + put_device(&hdata->connector.ddc->dev); return ret; } @@ -2072,7 +2071,7 @@ static int hdmi_remove(struct platform_device *pdev) if (hdata->regs_hdmiphy) iounmap(hdata->regs_hdmiphy); - put_device(&hdata->ddc_adpt->dev); + put_device(&hdata->connector.ddc->dev); mutex_destroy(&hdata->mutex); -- 2.17.1