1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright(c) 2023 Intel Corporation */
3 
4 #ifndef ADF_DBGFS_H
5 #define ADF_DBGFS_H
6 
7 #ifdef CONFIG_DEBUG_FS
8 void adf_dbgfs_init(struct adf_accel_dev *accel_dev);
9 void adf_dbgfs_add(struct adf_accel_dev *accel_dev);
10 void adf_dbgfs_rm(struct adf_accel_dev *accel_dev);
11 void adf_dbgfs_exit(struct adf_accel_dev *accel_dev);
12 #else
adf_dbgfs_init(struct adf_accel_dev * accel_dev)13 static inline void adf_dbgfs_init(struct adf_accel_dev *accel_dev)
14 {
15 }
16 
adf_dbgfs_add(struct adf_accel_dev * accel_dev)17 static inline void adf_dbgfs_add(struct adf_accel_dev *accel_dev)
18 {
19 }
20 
adf_dbgfs_rm(struct adf_accel_dev * accel_dev)21 static inline void adf_dbgfs_rm(struct adf_accel_dev *accel_dev)
22 {
23 }
24 
adf_dbgfs_exit(struct adf_accel_dev * accel_dev)25 static inline void adf_dbgfs_exit(struct adf_accel_dev *accel_dev)
26 {
27 }
28 #endif
29 #endif
30