Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3573652ybd; Tue, 25 Jun 2019 05:05:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwndl67zcWAQBOTNUZ35MZM5/QodcKMIU6lrSut0FaSeCXrfICt8SYe4+YEoTScBNcWzQzM X-Received: by 2002:a17:902:b093:: with SMTP id p19mr15395216plr.141.1561464303586; Tue, 25 Jun 2019 05:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561464303; cv=none; d=google.com; s=arc-20160816; b=TiYJdUtfU/3ntPez4C406HOEUNRBcpfR34aHJueqdzBGbSotKZ/X2JzfnQFuBCaZXv qzdw3itpt2jJTMUd49z9Zc7ywkqTmapC7QkfVd0tHlKpCsX2lWPvsl5rCnOt/acquBN/ 3xL5n9181Aid/c7VIrfB5y/BcV1cVIGtrnV2t+1CU/m56m2F7oNGNgB1yK2TOsvznYEy G3cVV/vGXO7rT86DkW4JiMzphBvFMFLZI7SJFLnnJAP8cRX4bCHOpAXw9tjFQw8/phZt ihQriT3D/SS8umnoSHSAXzKwt3Qhaq38ABTHEFJUxhEIk8cRoKSgA5bUrhPL6iFQR0is 4dxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:from; bh=N3ij5I+vwuVfB1piCT+dMj59t0RXVZQioVOrv8FcxOU=; b=1ASPqTO9jaxVgF4fHnNxPgK7EV9SDI/88FJ7hlaAgxaOXbQOfZcsbVyEyiXm2gpVvq HIEI4jxim8TsI8Gp/W86dbjEY3+9AG7ditBDUWWhTM3r2MijSp+mOw5K8+U00qqMQIH3 94xBrF5Ip0+ZuYyX+5dB4JWEiaENjskXPEdkZDm8Py1RD7Zp0a4WRGxkrolsIYag95DZ 4lxVgswAnapywK4kxn51Xq3hNQuMR3ryn2aDcDzo+UhMBTtpdPVNWIppR5S9dTOhLqwC y9Wlgl2cVBjQHggjpRXJE2UY2hQ/zJ56NN+fTRKHACnFyxFIozg4MxCOQrkHyg5yT2Tf Rm1A== 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 h4si2842285pje.41.2019.06.25.05.04.37; Tue, 25 Jun 2019 05:05:03 -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 S1730123AbfFYJqy (ORCPT + 99 others); Tue, 25 Jun 2019 05:46:54 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55868 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727729AbfFYJqt (ORCPT ); Tue, 25 Jun 2019 05:46:49 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id 81C05263A26 From: Andrzej Pietrasiewicz 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 , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/2] drm/exynos: Provide ddc symlink in connector's sysfs Date: Tue, 25 Jun 2019 11:46:36 +0200 Message-Id: <2bc41fb24348c7c3c89e9f653e694f8ae9b36e20.1561452052.git.andrzej.p@collabora.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: To: unlisted-recipients:; (no To-header on input) 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