summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/inside-secure/safexcel.h
diff options
context:
space:
mode:
authorPascal van Leeuwen <pascalvanl@gmail.com>2019-08-30 09:41:47 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-09-05 14:37:01 +1000
commitaa88f331c8ff40ef3643dba9b5ac11b5702e5fc4 (patch)
tree94c892afb6fb40d46ead7584aee28c67e799da10 /drivers/crypto/inside-secure/safexcel.h
parent062b64ca6db409fd6e102aed0fa59716b5cdfd78 (diff)
downloadtalos-op-linux-aa88f331c8ff40ef3643dba9b5ac11b5702e5fc4.tar.gz
talos-op-linux-aa88f331c8ff40ef3643dba9b5ac11b5702e5fc4.zip
crypto: inside-secure - Made .cra_priority value a define
Instead of having a fixed value (of 300) all over the place, the value for for .cra_priority is now made into a define (SAFEXCEL_CRA_PRIORITY). This makes it easier to play with, e.g. during development. Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/inside-secure/safexcel.h')
-rw-r--r--drivers/crypto/inside-secure/safexcel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/inside-secure/safexcel.h b/drivers/crypto/inside-secure/safexcel.h
index b5ff62fa3044..1e575a1bb0ea 100644
--- a/drivers/crypto/inside-secure/safexcel.h
+++ b/drivers/crypto/inside-secure/safexcel.h
@@ -598,6 +598,9 @@ enum safexcel_eip_version {
EIP197_DEVBRD
};
+/* Priority we use for advertising our algorithms */
+#define SAFEXCEL_CRA_PRIORITY 300
+
/* EIP algorithm presence flags */
enum safexcel_eip_algorithms {
SAFEXCEL_ALG_BC0 = BIT(5),
OpenPOWER on IntegriCloud