[PATCH 1/1] drm/mgag200: Expose version string
mathieu.larouche at matrox.com
mathieu.larouche at matrox.com
Fri Aug 18 20:24:12 UTC 2017
From: Mathieu Larouche <mathieu.larouche at matrox.com>
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 <mathieu.larouche at matrox.com>
---
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
--
1.8.3.1
More information about the dri-devel
mailing list