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: 52448 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id DE5B92031F for ; Fri, 14 Aug 2015 15:50:26 +0000 (UTC) Received: by labth1 with SMTP id th1sf29247598lab.2 for ; Fri, 14 Aug 2015 08:50:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=cIBrUQGWVMtR5dS0GVV1AHj7ELvu6KabugsGQUW2nEM=; b=DZsgLVLnpQThkPjHuWibfybfIlpxT5N3eG1Ve3HLTbb/XtpNcw1xER7RS0CnwdwM/e DrTVYC8EEbtBuaVkhq8wyEW8NPD0sVTgr/o5yNgfTCKql9ofEcMzLH22CFbjNG90Iarl qa7MO1fd5AXRk2xvn3BBpna6iHI/OTxJJF3IDVSByBTd1orUv6hXHbiF0al+UGpIMI2g EnaiP48PI4eFHWI0Rr/EKlNuayeQI+nBzcPgMKsshvjA7RLltwVZH2lFW9LB+9fD6aYh eFktxFs0N0PqsomK0OXruw9TV+zHZBPN/t6yxZ3ppTGZJWkgrSVkHpnC62lzkv9+Ywpd PKNg== X-Gm-Message-State: ALoCoQmRBb+ZZ4XyRVd4ZwZJ4rj9fPU57aZFKJfiZt7VMisacKaYsrKMdFX+y8HhLegu1fs/jT+h X-Received: by 10.113.3.8 with SMTP id bs8mr13216701lbd.23.1439567425799; Fri, 14 Aug 2015 08:50:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.100 with SMTP id a4ls392843lah.52.gmail; Fri, 14 Aug 2015 08:50:25 -0700 (PDT) X-Received: by 10.112.142.105 with SMTP id rv9mr44297061lbb.11.1439567425615; Fri, 14 Aug 2015 08:50:25 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id bj8si6196122lbc.93.2015.08.14.08.50.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 08:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lalv9 with SMTP id v9so46258763lal.0 for ; Fri, 14 Aug 2015 08:50:25 -0700 (PDT) X-Received: by 10.112.140.68 with SMTP id re4mr44618411lbb.72.1439567425516; Fri, 14 Aug 2015 08:50:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1715311lba; Fri, 14 Aug 2015 08:50:24 -0700 (PDT) X-Received: by 10.70.135.67 with SMTP id pq3mr89799615pdb.8.1439567423643; Fri, 14 Aug 2015 08:50:23 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si9626222pas.76.2015.08.14.08.50.22; Fri, 14 Aug 2015 08:50:23 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755532AbbHNPuR (ORCPT + 28 others); Fri, 14 Aug 2015 11:50:17 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:36464 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755515AbbHNPuO (ORCPT ); Fri, 14 Aug 2015 11:50:14 -0400 Received: by wicja10 with SMTP id ja10so22149450wic.1 for ; Fri, 14 Aug 2015 08:50:13 -0700 (PDT) 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 Cc: David Airlie , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, robdclark@gmail.com, bjorn@kryo.se, Srinivas Kandagatla 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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);