mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 09:27:35 +00:00
1e94b46f73
This old patch was marked as deferred. Bring it back to life, to continue towards the removal of common.h Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass <sjg@chromium.org>
34 lines
920 B
C
34 lines
920 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__
|
|
|
|
#include <linux/printk.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)
|
|
|
|
#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__ */
|