cc_debugfs.h 637 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
  3. #ifndef __CC_DEBUGFS_H__
  4. #define __CC_DEBUGFS_H__
  5. #ifdef CONFIG_DEBUG_FS
  6. void 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 void cc_debugfs_global_init(void) {}
  12. static inline void cc_debugfs_global_fini(void) {}
  13. static inline int cc_debugfs_init(struct cc_drvdata *drvdata)
  14. {
  15. return 0;
  16. }
  17. static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {}
  18. #endif
  19. #endif /*__CC_SYSFS_H__*/