mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 02:45:26 +07:00
21b650c236
Now that the SPDX tag is in all USB files, that identifies the license in a specific and legally-defined manner. So the extra GPL text wording can be removed as it is no longer needed at all. This is done on a quest to remove the 700+ different ways that files in the kernel describe the GPL license text. And there's unneeded stuff like the address (sometimes incorrect) for the FSF which is never needed. No copyright headers or other non-license-description text was removed. Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Chen-Yu Tsai <wens@csie.org> Acked-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
36 lines
948 B
C
36 lines
948 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
|
|
int musb_init_debugfs(struct musb *musb);
|
|
void musb_exit_debugfs(struct musb *musb);
|
|
#else
|
|
static inline int musb_init_debugfs(struct musb *musb)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void musb_exit_debugfs(struct musb *musb)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MUSB_LINUX_DEBUG_H__ */
|