Input: wacom - only register once the MODULE_* macros
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 6 Aug 2014 21:07:49 +0000 (14:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 Aug 2014 22:14:55 +0000 (15:14 -0700)
Putting the various MODULE_* makes them appear several times in modinfo
because wacom.h is used both in wacom_sys.c and wacom_wac.h.
Having the macros near the module declaration makes them appear only once.

Add also MODULE_VERSION(DRIVER_VERSION) to export the current version
number.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/hid/wacom.h
drivers/hid/wacom_sys.c

index 8cc4406b8a535bccd79abcf828ec71b24c3cd976..64bc1b296d91ed2ac5dd1121c95c49c2eb676ce1 100644 (file)
 #define DRIVER_DESC "USB Wacom tablet driver"
 #define DRIVER_LICENSE "GPL"
 
-MODULE_AUTHOR(DRIVER_AUTHOR);
-MODULE_DESCRIPTION(DRIVER_DESC);
-MODULE_LICENSE(DRIVER_LICENSE);
-
 #define USB_VENDOR_ID_WACOM    0x056a
 #define USB_VENDOR_ID_LENOVO   0x17ef
 
index 6e0c19146a793eae79243228357274e7c3fe2e99..3e388ec31da84bd5d41b9c6d6771d75ceb2c81a2 100644 (file)
@@ -1449,3 +1449,8 @@ static struct hid_driver wacom_driver = {
        .raw_event =    wacom_raw_event,
 };
 module_hid_driver(wacom_driver);
+
+MODULE_VERSION(DRIVER_VERSION);
+MODULE_AUTHOR(DRIVER_AUTHOR);
+MODULE_DESCRIPTION(DRIVER_DESC);
+MODULE_LICENSE(DRIVER_LICENSE);