4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 1) /* SPDX-License-Identifier: GPL-2.0 */
03963caeb0dd7 (Gilad Ben-Yossef 2019-04-18 16:38:53 +0300 2) /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 3)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 4) #ifndef __CC_DEBUGFS_H__
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 5) #define __CC_DEBUGFS_H__
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 6)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 7) #ifdef CONFIG_DEBUG_FS
54eedf0b1d28e (Greg Kroah-Hartman 2019-01-22 16:14:17 +0100 8) void cc_debugfs_global_init(void);
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 9) void cc_debugfs_global_fini(void);
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 10)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 11) int cc_debugfs_init(struct cc_drvdata *drvdata);
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 12) void cc_debugfs_fini(struct cc_drvdata *drvdata);
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 13)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 14) #else
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 15)
54eedf0b1d28e (Greg Kroah-Hartman 2019-01-22 16:14:17 +0100 16) static inline void cc_debugfs_global_init(void) {}
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 17) static inline void cc_debugfs_global_fini(void) {}
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 18)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 19) static inline int cc_debugfs_init(struct cc_drvdata *drvdata)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 20) {
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 21) return 0;
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 22) }
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 23)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 24) static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {}
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 25)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 26) #endif
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 27)
4c3f97276e156 (Gilad Ben-Yossef 2018-01-22 09:27:00 +0000 28) #endif /*__CC_SYSFS_H__*/