cc_debugfs.h 646 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
  3. #ifndef __CC_DEBUGFS_H__
  4. #define __CC_DEBUGFS_H__
  5. #ifdef CONFIG_DEBUG_FS
  6. int cc_debugfs_global_init(void);
  7. void cc_debugfs_global_fini(void);
  8. int cc_debugfs_init(struct cc_drvdata *drvdata);
  9. void cc_debugfs_fini(struct cc_drvdata *drvdata);
  10. #else
  11. static inline int cc_debugfs_global_init(void)
  12. {
  13. return 0;
  14. }
  15. static inline void cc_debugfs_global_fini(void) {}
  16. static inline int cc_debugfs_init(struct cc_drvdata *drvdata)
  17. {
  18. return 0;
  19. }
  20. static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {}
  21. #endif
  22. #endif /*__CC_SYSFS_H__*/