r8152: split DRIVER_VERSION
authorhayeswang <hayeswang@realtek.com>
Mon, 7 Sep 2015 03:57:43 +0000 (11:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2015 03:27:54 +0000 (20:27 -0700)
Split DRIVER_VERSION into NETNEXT_VERSION and NET_VERSION. Then,
according to the value of DRIVER_VERSION, we could know which
patches are used generally without comparing the source code.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index fe4ec324aebc0284f3a72849dcfc6cc9187196a8..6bb48bc514841956f020b9287e0ab3bca878ff9a 100644 (file)
 #include <linux/mdio.h>
 #include <linux/usb/cdc.h>
 
-/* Version Information */
-#define DRIVER_VERSION "v1.08.1 (2015/07/28)"
+/* Information for net-next */
+#define NETNEXT_VERSION                "08"
+
+/* Information for net */
+#define NET_VERSION            "1"
+
+#define DRIVER_VERSION         "v1." NETNEXT_VERSION "." NET_VERSION
 #define DRIVER_AUTHOR "Realtek linux nic maintainers <nic_swsd@realtek.com>"
 #define DRIVER_DESC "Realtek RTL8152/RTL8153 Based USB Ethernet Adapters"
 #define MODULENAME "r8152"