xref: /linux/drivers/usb/dwc2/debug.h (revision 5fd54ace4721fc5ce2bb5aef6318fcf17f421460)
1 // SPDX-License-Identifier: GPL-2.0
2 /**
3  * debug.h - Designware USB2 DRD controller debug header
4  *
5  * Copyright (C) 2015 Intel Corporation
6  * Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2  of
10  * the License as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  */
17 
18 #include "core.h"
19 
20 #ifdef CONFIG_DEBUG_FS
21 int dwc2_debugfs_init(struct dwc2_hsotg *hsotg);
22 void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg);
23 #else
24 static inline int dwc2_debugfs_init(struct dwc2_hsotg *hsotg)
25 {  return 0;  }
26 static inline void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg)
27 {  }
28 #endif
29