From patchwork Fri Aug 14 15:50:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 7022701 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 697F9C05AC for ; Mon, 17 Aug 2015 00:51:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FCE920644 for ; Mon, 17 Aug 2015 00:51:49 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 805802063B for ; Mon, 17 Aug 2015 00:51:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D6C546E0E5; Sun, 16 Aug 2015 17:51:44 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by gabe.freedesktop.org (Postfix) with ESMTPS id 16E566EFB8 for ; Fri, 14 Aug 2015 08:50:15 -0700 (PDT) Received: by wicja10 with SMTP id ja10so25164066wic.1 for ; Fri, 14 Aug 2015 08:50:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=w0oTWEbtkvK2xP8vHEus81++AHhmLzeAErvrtUgVaxo=; b=GNGBicZna9pUjHEt+y3PUjmz4B42VWP6Ut1qoou/Q9NeF0Ktz/hI4BbBSozFAjMyrw tCTgr5pznwWPvBnQHi8EXFsvyKE37Il/itbXIK5yHyQaK9DtiaxdkmOhbphvZ5HTGthy zBKGWdMwyA644TN4MjMZfhMJfvtLaCn41g3kQay6T6x9DegE5hEvB4w9E8Bgvduk19Kb Rb1wooSXddfCW/GdtcBq/L2L9Xml7nWrI3QJV0M1/A7i6UMfaYnfVEIJn6aQ/d2UKsaZ PwTm14VpRGvsAkL+vt76dhnsvmEuIhR/iVlgavLp1mssmWHFWT0L27ApwzAjqbtDOzA+ dHdA== X-Gm-Message-State: ALoCoQm5CdEknHbHi3AY0qlM1gFrmooMrmmIZ0L4ffvO2bQev7ZUNEgngyGlt8QRdtVhMP+DmaBv X-Received: by 10.194.57.166 with SMTP id j6mr1032996wjq.29.1439567413696; Fri, 14 Aug 2015 08:50:13 -0700 (PDT) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id hn2sm8769826wjc.45.2015.08.14.08.50.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Aug 2015 08:50:13 -0700 (PDT) From: Srinivas Kandagatla To: Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH RFC 2/5] drm/edid: export edid_vendor() Date: Fri, 14 Aug 2015 16:50:10 +0100 Message-Id: <1439567410-13677-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <439567280-13491-1-git-send-email-srinivas.kandagatla@linaro.org> References: <439567280-13491-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailman-Approved-At: Sun, 16 Aug 2015 17:51:43 -0700 Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch exports edid_vendor() match function, so that other drivers could use it for matching the vendor id. Signed-off-by: Srinivas Kandagatla --- drivers/gpu/drm/drm_edid.c | 4 ++-- include/drm/drm_crtc.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 30359cd..e0376ad 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -1417,7 +1417,7 @@ EXPORT_SYMBOL(drm_edid_duplicate); * * Returns true if @vendor is in @edid, false otherwise */ -static bool edid_vendor(struct edid *edid, char *vendor) +bool edid_vendor(struct edid *edid, char *vendor) { char edid_vendor[3]; @@ -1428,7 +1428,7 @@ static bool edid_vendor(struct edid *edid, char *vendor) return !strncmp(edid_vendor, vendor, 3); } - +EXPORT_SYMBOL(edid_vendor); /** * edid_get_quirks - return quirk flags for a given EDID * @edid: EDID to process diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 35d8763..bb6dc61 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -1332,6 +1332,7 @@ extern struct edid *drm_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter); extern struct edid *drm_get_edid_early(struct i2c_adapter *adapter); extern struct edid *drm_edid_duplicate(const struct edid *edid); +extern bool edid_vendor(struct edid *edid, char *vendor); extern int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid); extern void drm_mode_config_init(struct drm_device *dev); extern void drm_mode_config_reset(struct drm_device *dev);