crypto: caam - Move debugfs fops into standalone file
authorHoria Geantă <horia.geanta@nxp.com>
Thu, 6 Aug 2020 18:09:49 +0000 (21:09 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:47:49 +0000 (14:47 +1000)
commitabd9875497ba47e198fb565f11d5f332eeb08ab3
tree1c3a82a33daaa53669343e25e0bc6731bfacf7c8
parentc0f6eebedddaa4ab97311ec0730ab174d2a4c0bb
crypto: caam - Move debugfs fops into standalone file

Currently the debugfs fops are defined in caam/intern.h.  This causes
problems because it creates identical static functions and variables
in multiple files.  It also creates warnings when those files don't
use the fops.

This patch moves them into a standalone file, debugfs.c.

It also removes unnecessary uses of ifdefs on CONFIG_DEBUG_FS.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[Moved most of debugfs-related operations into debugfs.c.]
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/Makefile
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/debugfs.c [new file with mode: 0644]
drivers/crypto/caam/debugfs.h [new file with mode: 0644]
drivers/crypto/caam/intern.h
drivers/crypto/caam/qi.c