2019-06-24 21:56:07

by Gary R Hook

[permalink] [raw]
Subject: [PATCH 05/11] crypto: ccp - Expose maxdev through DebugFS

Add a read-only debugfs entry for the module parameter 'maxdev'.

Signed-off-by: Gary R Hook <[email protected]>
---
drivers/crypto/ccp/sp-pci.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/ccp/sp-pci.c b/drivers/crypto/ccp/sp-pci.c
index b81493810689..29177d113c90 100644
--- a/drivers/crypto/ccp/sp-pci.c
+++ b/drivers/crypto/ccp/sp-pci.c
@@ -49,6 +49,7 @@ MODULE_PARM_DESC(nqueues, "Number of queues per CCP (default: 5)");

#ifdef CONFIG_CRYPTO_DEV_CCP_DEBUGFS
modparam_t moduleparameters[] = {
+ {"maxdev", &maxdev, S_IRUSR},
{"nqueues", &nqueues, S_IRUSR},
{NULL, NULL, 0},
};