14c3f9727SGilad Ben-Yossef /* SPDX-License-Identifier: GPL-2.0 */ 2*03963caeSGilad Ben-Yossef /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */ 34c3f9727SGilad Ben-Yossef 44c3f9727SGilad Ben-Yossef #ifndef __CC_DEBUGFS_H__ 54c3f9727SGilad Ben-Yossef #define __CC_DEBUGFS_H__ 64c3f9727SGilad Ben-Yossef 74c3f9727SGilad Ben-Yossef #ifdef CONFIG_DEBUG_FS 854eedf0bSGreg Kroah-Hartman void cc_debugfs_global_init(void); 94c3f9727SGilad Ben-Yossef void cc_debugfs_global_fini(void); 104c3f9727SGilad Ben-Yossef 114c3f9727SGilad Ben-Yossef int cc_debugfs_init(struct cc_drvdata *drvdata); 124c3f9727SGilad Ben-Yossef void cc_debugfs_fini(struct cc_drvdata *drvdata); 134c3f9727SGilad Ben-Yossef 144c3f9727SGilad Ben-Yossef #else 154c3f9727SGilad Ben-Yossef cc_debugfs_global_init(void)1654eedf0bSGreg Kroah-Hartmanstatic inline void cc_debugfs_global_init(void) {} cc_debugfs_global_fini(void)174c3f9727SGilad Ben-Yossefstatic inline void cc_debugfs_global_fini(void) {} 184c3f9727SGilad Ben-Yossef cc_debugfs_init(struct cc_drvdata * drvdata)194c3f9727SGilad Ben-Yossefstatic inline int cc_debugfs_init(struct cc_drvdata *drvdata) 204c3f9727SGilad Ben-Yossef { 214c3f9727SGilad Ben-Yossef return 0; 224c3f9727SGilad Ben-Yossef } 234c3f9727SGilad Ben-Yossef cc_debugfs_fini(struct cc_drvdata * drvdata)244c3f9727SGilad Ben-Yossefstatic inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {} 254c3f9727SGilad Ben-Yossef 264c3f9727SGilad Ben-Yossef #endif 274c3f9727SGilad Ben-Yossef 284c3f9727SGilad Ben-Yossef #endif /*__CC_SYSFS_H__*/ 29