18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef __CC_DEBUGFS_H__ 58c2ecf20Sopenharmony_ci#define __CC_DEBUGFS_H__ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifdef CONFIG_DEBUG_FS 88c2ecf20Sopenharmony_civoid cc_debugfs_global_init(void); 98c2ecf20Sopenharmony_civoid cc_debugfs_global_fini(void); 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciint cc_debugfs_init(struct cc_drvdata *drvdata); 128c2ecf20Sopenharmony_civoid cc_debugfs_fini(struct cc_drvdata *drvdata); 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#else 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_cistatic inline void cc_debugfs_global_init(void) {} 178c2ecf20Sopenharmony_cistatic inline void cc_debugfs_global_fini(void) {} 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_cistatic inline int cc_debugfs_init(struct cc_drvdata *drvdata) 208c2ecf20Sopenharmony_ci{ 218c2ecf20Sopenharmony_ci return 0; 228c2ecf20Sopenharmony_ci} 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_cistatic inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {} 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#endif 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif /*__CC_SYSFS_H__*/ 29