From patchwork Fri Aug 18 20:24:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Larouche X-Patchwork-Id: 9914025 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2249D600C5 for ; Tue, 22 Aug 2017 00:38:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17CD8287BD for ; Tue, 22 Aug 2017 00:38:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CC53287F0; Tue, 22 Aug 2017 00:38:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5D27C287BD for ; Tue, 22 Aug 2017 00:38:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C16806E35F; Tue, 22 Aug 2017 00:36:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mtxmxout2.matrox.com (mtxmxout5.matrox.com [138.11.2.95]) by gabe.freedesktop.org (Postfix) with ESMTPS id E590C6E7DB for ; Fri, 18 Aug 2017 20:26:15 +0000 (UTC) Received: from venus.matrox.com (unknown [192.168.1.36]) by mtxmxout2.matrox.com (Postfix) with ESMTP id C991A40169 for ; Fri, 18 Aug 2017 16:26:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=matrox.com; s=dkim; t=1503087974; bh=PI4RXsK4nkVUiWKF4g8t73AFFn0NeSxVu1YHFEB4GSY=; h=From:To:Cc:Subject:Date; b=BgPZH30tfSMwPTrZGHR9kUK8UhFSjw1N9o77o/ugRbLpxmX+sXEXYMKwx3Ks9WXPf tl2dqIR/v2ShylisJgKaascKXW3EZIzUioDkyV3DcT+lhd4M3S6pnGFgDqzojIAXPe zp4XRYXYx/qRC+aHq6HKN2XsyXl3SfwJTU/PMsDQ= Received: (from ssmsp@localhost) by venus.matrox.com (8.14.6/8.13.2) id v7IKQE9P017404 for dri-devel@lists.freedesktop.org; Fri, 18 Aug 2017 16:26:14 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by venus.matrox.com (Postfix) with ESMTP id 054E65F760; Fri, 18 Aug 2017 16:26:13 -0400 (EDT) X-Virus-MTX-Scanned: by Matrox Virus scanner at venus.matrox.com Received: from venus.matrox.com ([127.0.0.1]) by localhost (venus.matrox.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id K_8ChWG-jVJr; Fri, 18 Aug 2017 16:26:13 -0400 (EDT) Received: from venus-in.matrox.com (localhost.localdomain [127.0.0.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.matrox.com (Postfix) with ESMTPS id 52C555F753; Fri, 18 Aug 2017 16:26:13 -0400 (EDT) Received: from mlaroucheRHEL.matrox.com (dyn-152-138.matrox.com [192.168.152.138]) by venus-in.matrox.com (Postfix) with ESMTP id 14F3061C58; Fri, 18 Aug 2017 16:26:13 -0400 (EDT) From: mathieu.larouche@matrox.com To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/1] drm/mgag200: Expose version string Date: Fri, 18 Aug 2017 16:24:12 -0400 Message-Id: X-Mailer: git-send-email 1.8.3.1 X-Mailman-Approved-At: Tue, 22 Aug 2017 00:36:37 +0000 Cc: Mathieu Larouche , smahmoud@lenovo.com 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-Virus-Scanned: ClamAV using ClamSMTP From: Mathieu Larouche OEMs started distributing this module out of the box so adding the version in modinfo output for this module may be a good idea. Signed-off-by: Mathieu Larouche --- drivers/gpu/drm/mgag200/mgag200_drv.c | 3 +++ drivers/gpu/drm/mgag200/mgag200_drv.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c index 9ac0078..ad3f193 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.c +++ b/drivers/gpu/drm/mgag200/mgag200_drv.c @@ -134,3 +134,6 @@ static void __exit mgag200_exit(void) MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL"); +MODULE_VERSION(__stringify(DRIVER_MAJOR) "." + __stringify(DRIVER_MINOR) "." + __stringify(DRIVER_PATCHLEVEL)); diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.h b/drivers/gpu/drm/mgag200/mgag200_drv.h index c88b6ec..df4833b 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.h +++ b/drivers/gpu/drm/mgag200/mgag200_drv.h @@ -37,7 +37,7 @@ #define DRIVER_DATE "20110418" #define DRIVER_MAJOR 1 -#define DRIVER_MINOR 0 +#define DRIVER_MINOR 1 #define DRIVER_PATCHLEVEL 0 #define MGAG200FB_CONN_LIMIT 1