From eda3bac20dce2d5584ac07cc6b28a08ec55aa798 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Wed, 24 May 2006 15:05:22 -0700 Subject: =?UTF-8?q?Derive=20the=20module=20version=20numbers=20from=20the?= =?UTF-8?q?=20package=20version.=20=20This=20idea=20was=20lifted=20from=20?= =?UTF-8?q?Michel=20D=C3=A4nzer's=20similar=20code=20in=20xf86-video-ati.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also, make the riva and nv driver versions match. --- src/nv_const.h | 3 --- src/riva_const.h | 3 --- src/riva_driver.c | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/nv_const.h b/src/nv_const.h index 523c7ee..7a7bdea 100644 --- a/src/nv_const.h +++ b/src/nv_const.h @@ -6,9 +6,6 @@ #define NV_VERSION 4000 #define NV_NAME "NV" #define NV_DRIVER_NAME "nv" -#define NV_MAJOR_VERSION 1 -#define NV_MINOR_VERSION 1 -#define NV_PATCHLEVEL 2 #endif /* __NV_CONST_H__ */ diff --git a/src/riva_const.h b/src/riva_const.h index 8221dca..4949fc1 100644 --- a/src/riva_const.h +++ b/src/riva_const.h @@ -6,9 +6,6 @@ #define RIVA_VERSION 4000 #define RIVA_NAME "RIVA128" #define RIVA_DRIVER_NAME "riva128" -#define RIVA_MAJOR_VERSION 1 -#define RIVA_MINOR_VERSION 1 -#define RIVA_PATCHLEVEL 0 #endif /* __RIVA_CONST_H__ */ diff --git a/src/riva_driver.c b/src/riva_driver.c index c5e6ea0..e062995 100644 --- a/src/riva_driver.c +++ b/src/riva_driver.c @@ -177,7 +177,7 @@ static XF86ModuleVersionInfo rivaVersRec = MODINFOSTRING1, MODINFOSTRING2, XORG_VERSION_CURRENT, - RIVA_MAJOR_VERSION, RIVA_MINOR_VERSION, RIVA_PATCHLEVEL, + NV_MAJOR_VERSION, NV_MINOR_VERSION, NV_PATCHLEVEL, ABI_CLASS_VIDEODRV, /* This is a video driver */ ABI_VIDEODRV_VERSION, MOD_CLASS_VIDEODRV, -- cgit v1.2.3