From patchwork Tue May 17 11:44:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 9111691 Return-Path: X-Original-To: patchwork-intel-gfx@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 C7276BF29F for ; Tue, 17 May 2016 11:44:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ECB9920279 for ; Tue, 17 May 2016 11:44:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C940C20108 for ; Tue, 17 May 2016 11:44:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE4126E6B1; Tue, 17 May 2016 11:44:19 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D5306E6B3 for ; Tue, 17 May 2016 11:44:18 +0000 (UTC) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 17 May 2016 04:44:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,324,1459839600"; d="scan'208";a="982807172" Received: from jnikula-mobl.fi.intel.com (HELO localhost) ([10.237.72.67]) by fmsmga002.fm.intel.com with ESMTP; 17 May 2016 04:44:16 -0700 From: Jani Nikula To: Daniel Vetter , Jani Nikula Date: Tue, 17 May 2016 14:44:13 +0300 Message-Id: <1463485453-22168-1-git-send-email-jani.nikula@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <20160517111156.GB27098@phenom.ffwll.local> References: <20160517111156.GB27098@phenom.ffwll.local> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: intel-gfx@lists.freedesktop.org Subject: [Intel-gfx] [PATCH] lib/igt_kms: move gtk-doc comments next to the definition X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.6 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 Now that we have actual functions for kms_test_*_str since commit 2d432fc5773df17f04283f4780dab161dd2e1c85 Author: Jani Nikula Date: Wed May 11 12:42:06 2016 +0300 lib/igt_aux: define actual functions for kmstest_*_str move also the gtk-doc comments next to the definitions, for consistency. Acked-by: Daniel Vetter Signed-off-by: Jani Nikula --- lib/igt_aux.c | 18 ++++++++++++++++++ lib/igt_kms.h | 20 -------------------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/lib/igt_aux.c b/lib/igt_aux.c index 6c3eb1f42fab..27b74aec8461 100644 --- a/lib/igt_aux.c +++ b/lib/igt_aux.c @@ -942,6 +942,12 @@ static const struct type_name encoder_type_names[] = { {} }; +/** + * kmstest_encoder_type_str: + * @type: DRM_MODE_ENCODER_* enumeration value + * + * Returns: A string representing the drm encoder @type. + */ const char *kmstest_encoder_type_str(int type) { return find_type_name(encoder_type_names, type); @@ -954,6 +960,12 @@ static const struct type_name connector_status_names[] = { {} }; +/** + * kmstest_connector_status_str: + * @status: DRM_MODE_* connector status value + * + * Returns: A string representing the drm connector status @status. + */ const char *kmstest_connector_status_str(int status) { return find_type_name(connector_status_names, status); @@ -980,6 +992,12 @@ static const struct type_name connector_type_names[] = { {} }; +/** + * kmstest_connector_type_str: + * @type: DRM_MODE_CONNECTOR_* enumeration value + * + * Returns: A string representing the drm connector @type. + */ const char *kmstest_connector_type_str(int type) { return find_type_name(connector_type_names, type); diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 5c8340171ab6..7aad8c8c2153 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -77,28 +77,8 @@ enum port { */ #define kmstest_port_name(port) ((port) + 'A') -/** - * kmstest_encoder_type_str: - * @type: DRM_MODE_ENCODER_* enumeration value - * - * Returns: A string representing the drm encoder @type. - */ const char *kmstest_encoder_type_str(int type); - -/** - * kmstest_connector_status_str: - * @status: DRM_MODE_* connector status value - * - * Returns: A string representing the drm connector status @status. - */ const char *kmstest_connector_status_str(int status); - -/** - * kmstest_connector_type_str: - * @type: DRM_MODE_CONNECTOR_* enumeration value - * - * Returns: A string representing the drm connector @type. - */ const char *kmstest_connector_type_str(int type); void kmstest_dump_mode(drmModeModeInfo *mode);