diff mbox series

[05/11] crypto: ccp - Expose maxdev through DebugFS

Message ID 156140454321.116890.4463726436811997138.stgit@sosrh3.amd.com (mailing list archive)
State Changes Requested
Delegated to: Herbert Xu
Headers show
Series Add module parameters to control CCP activation | expand

Commit Message

Gary R Hook June 24, 2019, 7:29 p.m. UTC
Add a read-only debugfs entry for the module parameter 'maxdev'.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
---
 drivers/crypto/ccp/sp-pci.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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},
 };