debugfs.h 865 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: BSD-3-Clause-Clear */
  2. /*
  3. * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef _ATH12K_DEBUGFS_H_
  7. #define _ATH12K_DEBUGFS_H_
  8. #ifdef CONFIG_ATH12K_DEBUGFS
  9. void ath12k_debugfs_soc_create(struct ath12k_base *ab);
  10. void ath12k_debugfs_soc_destroy(struct ath12k_base *ab);
  11. void ath12k_debugfs_register(struct ath12k *ar);
  12. void ath12k_debugfs_unregister(struct ath12k *ar);
  13. #else
  14. static inline void ath12k_debugfs_soc_create(struct ath12k_base *ab)
  15. {
  16. }
  17. static inline void ath12k_debugfs_soc_destroy(struct ath12k_base *ab)
  18. {
  19. }
  20. static inline void ath12k_debugfs_register(struct ath12k *ar)
  21. {
  22. }
  23. static inline void ath12k_debugfs_unregister(struct ath12k *ar)
  24. {
  25. }
  26. #endif /* CONFIG_ATH12K_DEBUGFS */
  27. #endif /* _ATH12K_DEBUGFS_H_ */