From patchwork Wed May 14 06:26:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YoungJun Cho X-Patchwork-Id: 4172771 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3192CBFF02 for ; Wed, 14 May 2014 06:27:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55D5B20375 for ; Wed, 14 May 2014 06:27:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 71DBF2035D for ; Wed, 14 May 2014 06:27:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6CC0F6E644; Tue, 13 May 2014 23:27:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id E02F56E37C for ; Tue, 13 May 2014 23:27:10 -0700 (PDT) Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5J00IZ2WL9FMC0@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 14 May 2014 15:27:09 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.44]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 56.CE.14563.DBC03735; Wed, 14 May 2014 15:27:09 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-04-53730cbdbdce Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7A.01.27725.CBC03735; Wed, 14 May 2014 15:27:09 +0900 (KST) Received: from localhost.localdomain ([10.252.75.90]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5J009Z6WL5U190@mmp2.samsung.com>; Wed, 14 May 2014 15:27:08 +0900 (KST) From: YoungJun Cho To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 05/18] drm_modes: add command mode helpers Date: Wed, 14 May 2014 15:26:52 +0900 Message-id: <1400048825-6052-6-git-send-email-yj44.cho@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1400048825-6052-1-git-send-email-yj44.cho@samsung.com> References: <1400048825-6052-1-git-send-email-yj44.cho@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t8zHd29PMXBBg9/8VncWneO1aL33Ekm i/lHgKwrX9+zWfS/Wchqce7VSkaLSfcnsFi8uHeRxaJ3wVU2i7NNb9gtOicuYbeYcX4fk8XS 6xeZLCZMX8ti0br3CLvFp48LWSxmTH7JZvFz1zwWByGPNfPWMHpc7utl8tg56y67x8rlX9g8 ZnfMZPXYtKqTzWP7twesHve7jzN59P818OjbsorR4/MmuQDuKC6blNSczLLUIn27BK6MI20N bAU7FSrW73/D2MD4S6qLkZNDQsBE4tm2w4wQtpjEhXvr2boYuTiEBJYxSnw8PZ0Vpujo2rnM EInpjBLT2u6xQjitTBKrJ1xgB6liE9CUeP5xB1iHiICpRMekpSwgRcwCS5gl9ravYgNJCAtY Sdxa/hVsH4uAqsSljjtgDbwCzhJX1x8DquEAWqcgMWeSDUiYU8BFYsHsv2BhIaCSH82MICMl BGZySHy+eI0JYoyAxLfJh1ggWmUlNh1ghjhaUuLgihssExiFFzAyrGIUTS1ILihOSi8y0itO zC0uzUvXS87P3cQIice+HYw3D1gfYkwGGjeR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Dk6pBkaF3SZBn+4WyDJ/ MjrGWX/M7eSvzMQo7vCNJ3YGWOqGdJ+UuMeUGPFWO0HM+tm5Z6+yTAUvr3hS+0BaSn/+pqbl bJ9uCO45ZDJhluVXzSbbjRw+/+a7bvoacnuikF3niXU7rzA+372dt/cP20V3x9jDKpaWlo+e 6hYcqz+pvCDf6lt3/eL1bsJKLMUZiYZazEXFiQBbFDKEOgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, sw0312.kim@samsung.com, a.hajda@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org, laurent.pinchart@ideasonboard.com, galak@codeaurora.org, kgene.kim@samsung.com, s.trumtrar@pengutronix.de X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.8 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 adds helper functions to convert cmdmode to drm_display_mode Signed-off-by: YoungJun Cho Acked-by: Inki Dae Acked-by: Kyungmin Park --- drivers/gpu/drm/drm_modes.c | 59 +++++++++++++++++++++++++++++++++++++++++++ include/drm/drm_modes.h | 12 +++++++++ 2 files changed, 71 insertions(+) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index bedf189..8977381 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -37,6 +37,8 @@ #include #include