18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * MUSB OTG driver debug defines
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright 2005 Mentor Graphics Corporation
68c2ecf20Sopenharmony_ci * Copyright (C) 2005-2006 by Texas Instruments
78c2ecf20Sopenharmony_ci * Copyright (C) 2006-2007 Nokia Corporation
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef __MUSB_LINUX_DEBUG_H__
118c2ecf20Sopenharmony_ci#define __MUSB_LINUX_DEBUG_H__
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define yprintk(facility, format, args...) \
148c2ecf20Sopenharmony_ci	do { printk(facility "%s %d: " format , \
158c2ecf20Sopenharmony_ci	__func__, __LINE__ , ## args); } while (0)
168c2ecf20Sopenharmony_ci#define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
178c2ecf20Sopenharmony_ci#define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
188c2ecf20Sopenharmony_ci#define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_civoid musb_dbg(struct musb *musb, const char *fmt, ...);
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#ifdef CONFIG_DEBUG_FS
238c2ecf20Sopenharmony_civoid musb_init_debugfs(struct musb *musb);
248c2ecf20Sopenharmony_civoid musb_exit_debugfs(struct musb *musb);
258c2ecf20Sopenharmony_ci#else
268c2ecf20Sopenharmony_cistatic inline void musb_init_debugfs(struct musb *musb)
278c2ecf20Sopenharmony_ci{
288c2ecf20Sopenharmony_ci}
298c2ecf20Sopenharmony_cistatic inline void musb_exit_debugfs(struct musb *musb)
308c2ecf20Sopenharmony_ci{
318c2ecf20Sopenharmony_ci}
328c2ecf20Sopenharmony_ci#endif
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif				/*  __MUSB_LINUX_DEBUG_H__ */
35