]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/usb/musb/musb_debug.h
Merge tag 'led_fixes_for_4.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mirror_ubuntu-bionic-kernel.git] / drivers / usb / musb / musb_debug.h
CommitLineData
5fd54ace 1// SPDX-License-Identifier: GPL-2.0
550a7375
FB
2/*
3 * MUSB OTG driver debug defines
4 *
5 * Copyright 2005 Mentor Graphics Corporation
6 * Copyright (C) 2005-2006 by Texas Instruments
7 * Copyright (C) 2006-2007 Nokia Corporation
550a7375
FB
8 */
9
10#ifndef __MUSB_LINUX_DEBUG_H__
11#define __MUSB_LINUX_DEBUG_H__
12
13#define yprintk(facility, format, args...) \
14 do { printk(facility "%s %d: " format , \
15 __func__, __LINE__ , ## args); } while (0)
16#define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
17#define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
18#define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
19
f89252ad
BL
20void musb_dbg(struct musb *musb, const char *fmt, ...);
21
7f7f9e2a 22#ifdef CONFIG_DEBUG_FS
b0945c07
VZ
23int musb_init_debugfs(struct musb *musb);
24void musb_exit_debugfs(struct musb *musb);
7f7f9e2a
FB
25#else
26static inline int musb_init_debugfs(struct musb *musb)
27{
28 return 0;
29}
30static inline void musb_exit_debugfs(struct musb *musb)
31{
32}
33#endif
34
550a7375 35#endif /* __MUSB_LINUX_DEBUG_H__ */