All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [next PATCH S22 13/14] i40evf: change version string generation
@ 2015-11-14  0:55 Deepthi Kavalur
  0 siblings, 0 replies; 2+ messages in thread
From: Deepthi Kavalur @ 2015-11-14  0:55 UTC (permalink / raw)
  To: intel-wired-lan

From: Mitch Williams <mitch.a.williams@intel.com>

Generate version strings like the PF driver does. This gives us more
flexibility to add suffixes to the version string at build time.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Change-ID: I0a5ca0783dd8fb849516bfc1e37ea070127847bd
---
V2: Only description change in the above section. No code change.

 drivers/net/ethernet/intel/i40evf/i40evf_main.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
index 451c5f0..2d03d02 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
+++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
@@ -34,7 +34,15 @@ char i40evf_driver_name[] = "i40evf";
 static const char i40evf_driver_string[] =
 	"Intel(R) XL710/X710 Virtual Function Network Driver";
 
-#define DRV_VERSION "1.4.1"
+#define DRV_KERN "-k"
+
+#define DRV_VERSION_MAJOR 1
+#define DRV_VERSION_MINOR 4
+#define DRV_VERSION_BUILD 1
+#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \
+	     __stringify(DRV_VERSION_MINOR) "." \
+	     __stringify(DRV_VERSION_BUILD) \
+	     DRV_KERN
 const char i40evf_driver_version[] = DRV_VERSION;
 static const char i40evf_copyright[] =
 	"Copyright (c) 2013 - 2015 Intel Corporation.";
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Intel-wired-lan] [next PATCH S22 13/14] i40evf: change version string generation
  2015-11-13 23:47 [Intel-wired-lan] [next PATCH S22 00/15] i40e/i40evf updates Deepthi Kavalur
@ 2015-11-13 23:47 ` Deepthi Kavalur
  0 siblings, 0 replies; 2+ messages in thread
From: Deepthi Kavalur @ 2015-11-13 23:47 UTC (permalink / raw)
  To: intel-wired-lan

From: Mitch Williams <mitch.a.williams@intel.com>

Generate version strings like the PF driver does. This gives us more
flexibility to add suffixes to the version string at build time.

Added in support of X722 prerelease driver in the component tool

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Change-ID: I0a5ca0783dd8fb849516bfc1e37ea070127847bd
---
 drivers/net/ethernet/intel/i40evf/i40evf_main.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
index 451c5f0..2d03d02 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
+++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
@@ -34,7 +34,15 @@ char i40evf_driver_name[] = "i40evf";
 static const char i40evf_driver_string[] =
 	"Intel(R) XL710/X710 Virtual Function Network Driver";
 
-#define DRV_VERSION "1.4.1"
+#define DRV_KERN "-k"
+
+#define DRV_VERSION_MAJOR 1
+#define DRV_VERSION_MINOR 4
+#define DRV_VERSION_BUILD 1
+#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \
+	     __stringify(DRV_VERSION_MINOR) "." \
+	     __stringify(DRV_VERSION_BUILD) \
+	     DRV_KERN
 const char i40evf_driver_version[] = DRV_VERSION;
 static const char i40evf_copyright[] =
 	"Copyright (c) 2013 - 2015 Intel Corporation.";
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-14  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-14  0:55 [Intel-wired-lan] [next PATCH S22 13/14] i40evf: change version string generation Deepthi Kavalur
  -- strict thread matches above, loose matches on Subject: below --
2015-11-13 23:47 [Intel-wired-lan] [next PATCH S22 00/15] i40e/i40evf updates Deepthi Kavalur
2015-11-13 23:47 ` [Intel-wired-lan] [next PATCH S22 13/14] i40evf: change version string generation Deepthi Kavalur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.