Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / crypto / caam / debugfs.h
blob661d768acdbfccfb65f5b2480be1a9f0a878281a
1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
2 /* Copyright 2019 NXP */
4 #ifndef CAAM_DEBUGFS_H
5 #define CAAM_DEBUGFS_H
7 struct dentry;
8 struct caam_drv_private;
10 #ifdef CONFIG_DEBUG_FS
11 void caam_debugfs_init(struct caam_drv_private *ctrlpriv, struct dentry *root);
12 #else
13 static inline void caam_debugfs_init(struct caam_drv_private *ctrlpriv,
14 struct dentry *root)
16 #endif
18 #if defined(CONFIG_DEBUG_FS) && defined(CONFIG_CAAM_QI)
19 void caam_debugfs_qi_congested(void);
20 void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv);
21 #else
22 static inline void caam_debugfs_qi_congested(void) {}
23 static inline void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv) {}
24 #endif
26 #endif /* CAAM_DEBUGFS_H */