Although each driver tree contains information on the version, author,
etc. only the 3.17 tree exposes any of that through sysfs. Because this
can be useful information to have (especially the version number) we
copy the neccessary lines from 3.17 to the other trees.

Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
---
 2.6.30/wacom_sys.c | 5 +++++
 2.6.36/wacom_sys.c | 5 +++++
 2.6.38/wacom_sys.c | 5 +++++
 3.7/wacom_sys.c    | 5 +++++
 4 files changed, 20 insertions(+)

diff --git a/2.6.30/wacom_sys.c b/2.6.30/wacom_sys.c
index 7553a56..c12cb02 100644
--- a/2.6.30/wacom_sys.c
+++ b/2.6.30/wacom_sys.c
@@ -951,3 +951,8 @@ static void __exit wacom_exit(void)
 
 module_init(wacom_init);
 module_exit(wacom_exit);
+
+MODULE_VERSION(DRIVER_VERSION);
+MODULE_AUTHOR(DRIVER_AUTHOR);
+MODULE_DESCRIPTION(DRIVER_DESC);
+MODULE_LICENSE(DRIVER_LICENSE);
diff --git a/2.6.36/wacom_sys.c b/2.6.36/wacom_sys.c
index 5da3bee..e33787d 100644
--- a/2.6.36/wacom_sys.c
+++ b/2.6.36/wacom_sys.c
@@ -1028,3 +1028,8 @@ static void __exit wacom_exit(void)
 
 module_init(wacom_init);
 module_exit(wacom_exit);
+
+MODULE_VERSION(DRIVER_VERSION);
+MODULE_AUTHOR(DRIVER_AUTHOR);
+MODULE_DESCRIPTION(DRIVER_DESC);
+MODULE_LICENSE(DRIVER_LICENSE);
diff --git a/2.6.38/wacom_sys.c b/2.6.38/wacom_sys.c
index 515dafa..5f08a6b 100644
--- a/2.6.38/wacom_sys.c
+++ b/2.6.38/wacom_sys.c
@@ -1612,3 +1612,8 @@ module_exit(wacom_exit);
 #else
 module_usb_driver(wacom_driver);
 #endif
+
+MODULE_VERSION(DRIVER_VERSION);
+MODULE_AUTHOR(DRIVER_AUTHOR);
+MODULE_DESCRIPTION(DRIVER_DESC);
+MODULE_LICENSE(DRIVER_LICENSE);
diff --git a/3.7/wacom_sys.c b/3.7/wacom_sys.c
index e52f6b0..4c838d9 100644
--- a/3.7/wacom_sys.c
+++ b/3.7/wacom_sys.c
@@ -1599,3 +1599,8 @@ static struct usb_driver wacom_driver = {
 };
 
 module_usb_driver(wacom_driver);
+
+MODULE_VERSION(DRIVER_VERSION);
+MODULE_AUTHOR(DRIVER_AUTHOR);
+MODULE_DESCRIPTION(DRIVER_DESC);
+MODULE_LICENSE(DRIVER_LICENSE);
-- 
2.4.6


------------------------------------------------------------------------------
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to