blob: 7e2442bcbb2ec191bead537f3500b51b1f4906c6 [file] [log] [blame]
Greg Kroah-Hartman5fd54ac2017-11-03 11:28:30 +01001// SPDX-License-Identifier: GPL-2.0
Mian Yousaf Kaukabf91eea42015-04-29 22:08:59 +02002/**
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
John Youn3b1920e2017-01-17 20:30:58 -080021int dwc2_debugfs_init(struct dwc2_hsotg *hsotg);
22void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg);
Mian Yousaf Kaukabf91eea42015-04-29 22:08:59 +020023#else
24static inline int dwc2_debugfs_init(struct dwc2_hsotg *hsotg)
25{ return 0; }
26static inline void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg)
27{ }
28#endif