Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / ufs / core / ufs-debugfs.h
blob97548a3f90eb8f5d72f53d4e63aa56c543560682
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2020 Intel Corporation
3 */
5 #ifndef __UFS_DEBUGFS_H__
6 #define __UFS_DEBUGFS_H__
8 struct ufs_hba;
10 #ifdef CONFIG_DEBUG_FS
11 void __init ufs_debugfs_init(void);
12 void ufs_debugfs_exit(void);
13 void ufs_debugfs_hba_init(struct ufs_hba *hba);
14 void ufs_debugfs_hba_exit(struct ufs_hba *hba);
15 void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status);
16 #else
17 static inline void ufs_debugfs_init(void) {}
18 static inline void ufs_debugfs_exit(void) {}
19 static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {}
20 static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {}
21 static inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {}
22 #endif
24 #endif