Commit 6ca36473 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

musb_hdrc, otg_state_string tweak

This provides a trivial definition of otg_state_string() for use
in various WARNING() messages when debugging is not enabled.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
parent c16a1cc2
......@@ -122,6 +122,15 @@ module_param(debug, uint, 0);
MODULE_PARM_DESC(debug, "initial debug message level");
#define MUSB_VERSION_SUFFIX "/dbg"
#else
const char *otg_state_string(struct musb *musb)
{
static char buf[8];
snprintf(buf, sizeof buf, "otg-%d", musb->xceiv.state);
return buf;
}
#endif
#define DRIVER_AUTHOR "Mentor Graphics, Texas Instruments, Nokia"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment