mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 20:14:25 +08:00
6814c73fdc
This patch corrects the SPDX License Identifier style in header files related to USB Dual Role (OTG-ready) Controller Drivers. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used). Changes made by using a script provided by Joe Perches here: https://lkml.org/lkml/2019/2/7/46. Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> Link: https://lore.kernel.org/r/20200404104952.GA6575@nishad Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35 lines
942 B
C
35 lines
942 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* MUSB OTG driver debug defines
|
|
*
|
|
* Copyright 2005 Mentor Graphics Corporation
|
|
* Copyright (C) 2005-2006 by Texas Instruments
|
|
* Copyright (C) 2006-2007 Nokia Corporation
|
|
*/
|
|
|
|
#ifndef __MUSB_LINUX_DEBUG_H__
|
|
#define __MUSB_LINUX_DEBUG_H__
|
|
|
|
#define yprintk(facility, format, args...) \
|
|
do { printk(facility "%s %d: " format , \
|
|
__func__, __LINE__ , ## args); } while (0)
|
|
#define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
|
|
#define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
|
|
#define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
|
|
|
|
void musb_dbg(struct musb *musb, const char *fmt, ...);
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
void musb_init_debugfs(struct musb *musb);
|
|
void musb_exit_debugfs(struct musb *musb);
|
|
#else
|
|
static inline void musb_init_debugfs(struct musb *musb)
|
|
{
|
|
}
|
|
static inline void musb_exit_debugfs(struct musb *musb)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MUSB_LINUX_DEBUG_H__ */
|