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