Linux Audio

Check our new training course

Loading...
v6.8
 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
 9#include "core.h"
10
11#ifdef CONFIG_DEBUG_FS
12int dwc2_debugfs_init(struct dwc2_hsotg *hsotg);
13void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg);
14#else
15static inline int dwc2_debugfs_init(struct dwc2_hsotg *hsotg)
16{  return 0;  }
17static inline void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg)
18{  }
19#endif
v4.10.11
 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
20extern int dwc2_debugfs_init(struct dwc2_hsotg *);
21extern void dwc2_debugfs_exit(struct dwc2_hsotg *);
22#else
23static inline int dwc2_debugfs_init(struct dwc2_hsotg *hsotg)
24{  return 0;  }
25static inline void dwc2_debugfs_exit(struct dwc2_hsotg *hsotg)
26{  }
27#endif