crypto: qat - add driver version
authorAllan, Bruce W <bruce.w.allan@intel.com>
Fri, 8 May 2015 00:00:42 +0000 (17:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 11 May 2015 07:06:48 +0000 (15:06 +0800)
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_common_drv.h
drivers/crypto/qat/qat_common/adf_ctl_drv.c
drivers/crypto/qat/qat_dh895xcc/adf_drv.c

index 0666ee6a3360feac17675575d9d44c61b38a190e..27e16c09230bffa24e505a03c8848fc7ab2bb40d 100644 (file)
 #include "icp_qat_fw_loader_handle.h"
 #include "icp_qat_hal.h"
 
+#define ADF_MAJOR_VERSION      0
+#define ADF_MINOR_VERSION      1
+#define ADF_BUILD_VERSION      3
+#define ADF_DRV_VERSION                __stringify(ADF_MAJOR_VERSION) "." \
+                               __stringify(ADF_MINOR_VERSION) "." \
+                               __stringify(ADF_BUILD_VERSION)
+
 #define ADF_STATUS_RESTARTING 0
 #define ADF_STATUS_STARTING 1
 #define ADF_STATUS_CONFIGURED 2
index cb5f066e93a6422a8666c8a78ede1ec6730bca8e..e056b9e9bf8a99068aa0c0097fc57fe9da25a27f 100644 (file)
@@ -504,3 +504,4 @@ MODULE_LICENSE("Dual BSD/GPL");
 MODULE_AUTHOR("Intel");
 MODULE_DESCRIPTION("Intel(R) QuickAssist Technology");
 MODULE_ALIAS_CRYPTO("intel_qat");
+MODULE_VERSION(ADF_DRV_VERSION);
index c1b3f0b342e2d48afe9555ad19f7785530cee5ae..ecf0ef1fcda83457738edb4dee192f24d783af8c 100644 (file)
@@ -419,3 +419,4 @@ MODULE_LICENSE("Dual BSD/GPL");
 MODULE_AUTHOR("Intel");
 MODULE_FIRMWARE(ADF_DH895XCC_FW);
 MODULE_DESCRIPTION("Intel(R) QuickAssist Technology");
+MODULE_VERSION(ADF_DRV_VERSION);